using System.Collections;
using System.Windows.Forms;

namespace QC.QTMInterface;

public class BasePlugin : UserControl
{
	public const string LOOPVALUE_SEP = "__";

	public const string LOOPS_SEP = "_._";

	public const string LOOPSCENARIO_SEP = "_ _";

	protected WSpaceConfig wsc;

	protected ConfigInfo plugInConfigInfo = new ConfigInfo();

	protected bool isSafeToExit = true;

	public string SchedulerID { get; set; }

	public virtual ConfigInfo PlugInConfigInfo
	{
		get
		{
			return plugInConfigInfo;
		}
		set
		{
			plugInConfigInfo = value;
		}
	}

	public virtual bool IsSafeToExit
	{
		get
		{
			return isSafeToExit;
		}
		set
		{
			isSafeToExit = value;
		}
	}

	public virtual void OnConfigInfo(WSpaceConfig wsc)
	{
		this.wsc = wsc;
	}

	public virtual bool MenuMessages(string MenuMessage)
	{
		return true;
	}

	public virtual void OnMsg(ArrayList message)
	{
	}

	public virtual void OnGenericMessage(string messageType, GenericTestData data)
	{
	}

	public virtual void OnGenericParamMessage(string messageType, string id, string name, string value, string units, string lowerLimit, string upperLimit)
	{
	}

	public virtual void OnCustomMessage(object customData)
	{
	}

	public virtual bool Closing()
	{
		return true;
	}
}
