using System;
using System.Drawing;
using System.Windows.Forms;

namespace QDART_MFG_CfgEditor;

[Serializable]
public class Tip
{
	public enum TxtContent
	{
		FILE_PATH,
		IP_ADDRESS,
		USB_ADDRESS,
		BLUETOOTH_ADDRESS,
		BLANK,
		OTHERS
	}

	private string name = "";

	private string description = "";

	private string errorMsg = "";

	private TxtContent currentInputType = TxtContent.USB_ADDRESS;

	public TxtContent CurrentInputType
	{
		get
		{
			return currentInputType;
		}
		set
		{
			currentInputType = value;
		}
	}

	public string ErrorMsg
	{
		get
		{
			return errorMsg;
		}
		set
		{
			errorMsg = value;
		}
	}

	public string Name
	{
		get
		{
			return name;
		}
		set
		{
			name = value;
		}
	}

	public string Description
	{
		get
		{
			return description;
		}
		set
		{
			description = value;
		}
	}

	public Tip(Control tx, Label lb, ToolTip tt, TxtContent tc, string strName, string strDescript, string strErrMsg)
	{
		CurrentInputType = tc;
		lb.Location = new Point(tx.Location.X, tx.Location.Y - lb.Height);
		Name = strName;
		lb.Text = Name;
		ErrorMsg = strErrMsg;
		Description = strDescript;
		tt.SetToolTip(lb, Description);
	}
}
