using System;
using System.ComponentModel;
using QC.QsprTestObjects.Tests.Base;

namespace QC.QsprTestObjects.Tests.LabVIEW;

[Serializable]
public class LabVIEWTestProperties : TestProperties
{
	private bool displayFrontPanel = true;

	private bool closeVIAfterCall;

	[DefaultValue(true)]
	[Category("Settings")]
	[Description("Display the VI FP or not")]
	public bool DisplayFrontPanel
	{
		get
		{
			return displayFrontPanel;
		}
		set
		{
			displayFrontPanel = value;
		}
	}

	[DefaultValue(false)]
	[Category("Settings")]
	[Description("Closes VI after each VI call")]
	public bool CloseVIAfterCall
	{
		get
		{
			return closeVIAfterCall;
		}
		set
		{
			closeVIAfterCall = value;
		}
	}

	public override TestProperties Clone()
	{
		LabVIEWTestProperties labVIEWTestProperties = new LabVIEWTestProperties();
		labVIEWTestProperties.displayFrontPanel = displayFrontPanel;
		labVIEWTestProperties.closeVIAfterCall = closeVIAfterCall;
		Copy(labVIEWTestProperties);
		return labVIEWTestProperties;
	}
}
