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

namespace QC.SmartMatchApp;

public class MeasurementSelection : UserControl
{
	public enum eCheckBoxes
	{
		DELAY,
		PIN,
		POT,
		ACLR,
		POUT_DELTA,
		CURRENT,
		CNR
	}

	private const int NUM_MEASUREMENTS = 7;

	public bool bMeasureDelay;

	public bool bMeasurePin;

	public bool bMeasurePout;

	public bool bMeasureACLR;

	public bool bMeasurePoutDelta;

	public bool bMeasureCurrent;

	public bool bMeasureCNR;

	public bool[] MeasureCheckBoxes = new bool[7];

	public string StrMeasureTypes = "";

	public string strDelayMeasureType = "ACLRBASED_DELAY_DELTA";

	private string strPinMeasureType = "";

	private string strPoutMeasureType = "";

	private string strAclrMeasureType = "";

	private string strPoutDeltaMeasureType = "";

	private string strCurrentMeasureType = "AMAMBASED_CURR_MAX";

	private string strCNRMeasureType = "AMAMBASED_CNR_MAX";

	public string StrMeasureConstraints = "";

	public string strDelayMeasureConstraint = "<";

	public string strPinMeasureConstraint = "<";

	public string strPoutMeasureConstraint = ">";

	public string strAclrMeasureConstraint = "<";

	public string strPoutDeltaMeasureConstraint = "<";

	public string strCurrentMeasureConstraint = "<";

	public string strCNRMeasureConstraint = "<";

	public string StrMeasureTargets = "";

	public string StrDefaultMeasureTargets = "";

	public string strDelayMeasureTarget = "5";

	public string strPinMeasureTarget = "";

	public string strPoutMeasureTarget = "";

	public string strAclrMeasureTarget = "";

	public string strPoutDeltaMeasureTarget = "";

	public string strCurrentMeasureTarget = "";

	public string strCNRMeasureTarget = "";

	public string strDefaultDelayMeasureTarget = "30";

	public string strDefaultPinMeasureTarget = "10";

	public string strDefaultPoutMeasureTarget = "20";

	public string strDefaultAclrMeasureTarget = "-30";

	public string strDefaultPoutDeltaMeasureTarget = "1.5";

	private bool initControls;

	private IContainer components;

	private CheckBox cbMeasureDelay;

	private Label label1;

	private ComboBox cbDelayMeasureType;

	private Label label2;

	private TextBox tbDelayMeasureTarget;

	private Label label3;

	private Label label4;

	private ComboBox cbDelayMeasureConstraint;

	private ComboBox cbPinMeasureConstraint;

	private TextBox tbPinMeasureTarget;

	private ComboBox cbPinMeasureType;

	private CheckBox cbMeasurePin;

	private ComboBox cbPoutMeasureConstraint;

	private TextBox tbPoutMeasureTarget;

	private ComboBox cbPoutMeasureType;

	private CheckBox cbMeasurePout;

	private ComboBox cbAclrMeasureConstraint;

	private TextBox tbAclrMeasureTarget;

	private ComboBox cbAclrMeasureType;

	private CheckBox cbMeasureACLR;

	private ComboBox cbCurrentMeasureConstraint;

	private TextBox tbCurrentMeasureTarget;

	private ComboBox cbCurrentMeasureType;

	private CheckBox cbMeasureCurrent;

	private ComboBox cbCNRMeasureConstraint;

	private TextBox tbCNRMeasureTarget;

	private ComboBox cbCNRMeasureType;

	private CheckBox cbMeasureCNR;

	private ComboBox cbPoutDeltaMeasureConstraint;

	private TextBox tbPoutDeltaMeasureTarget;

	private ComboBox cbPoutDeltaMeasureType;

	private CheckBox cbMeasurePoutDelta;

	public MeasurementSelection()
	{
		InitializeComponent();
	}

	private void cbMeasureDelay_CheckedChanged(object sender, EventArgs e)
	{
		bMeasureDelay = cbMeasureDelay.Checked;
		MeasureCheckBoxes[Convert.ToInt16(eCheckBoxes.DELAY)] = bMeasureDelay;
		UpdateMeasurementInfo();
		if (!initControls)
		{
			UpdateDefaultMeasurementInfo();
		}
	}

	private void cbMeasurePin_CheckedChanged(object sender, EventArgs e)
	{
		bMeasurePin = cbMeasurePin.Checked;
		MeasureCheckBoxes[Convert.ToInt16(eCheckBoxes.PIN)] = bMeasurePin;
		UpdateMeasurementInfo();
	}

	private void cbMeasurePout_CheckedChanged(object sender, EventArgs e)
	{
		bMeasurePout = cbMeasurePout.Checked;
		MeasureCheckBoxes[Convert.ToInt16(eCheckBoxes.POT)] = bMeasurePout;
		UpdateMeasurementInfo();
	}

	private void cbMeasureACLR_CheckedChanged(object sender, EventArgs e)
	{
		bMeasureACLR = cbMeasureACLR.Checked;
		MeasureCheckBoxes[Convert.ToInt16(eCheckBoxes.ACLR)] = bMeasureACLR;
		UpdateMeasurementInfo();
	}

	private void cbMeasurePoutDelta_CheckedChanged(object sender, EventArgs e)
	{
		bMeasurePoutDelta = cbMeasurePoutDelta.Checked;
		MeasureCheckBoxes[Convert.ToInt16(eCheckBoxes.POUT_DELTA)] = bMeasurePoutDelta;
		UpdateMeasurementInfo();
	}

	private void cbMeasureCurrent_CheckedChanged(object sender, EventArgs e)
	{
		bMeasureCurrent = cbMeasureCurrent.Checked;
		MeasureCheckBoxes[Convert.ToInt16(eCheckBoxes.CURRENT)] = bMeasureCurrent;
		UpdateMeasurementInfo();
	}

	private void cbMeasureSNR_CheckedChanged(object sender, EventArgs e)
	{
		bMeasureCNR = cbMeasureCNR.Checked;
		MeasureCheckBoxes[Convert.ToInt16(eCheckBoxes.CNR)] = bMeasureCNR;
		UpdateMeasurementInfo();
	}

	private void cbDelayMeasureType_TextChanged(object sender, EventArgs e)
	{
		if (!initControls)
		{
			if (cbDelayMeasureType.Text == "FW Based Delay Delta")
			{
				strDelayMeasureType = "FW_DELAY_DELTA";
			}
			else
			{
				strDelayMeasureType = "ACLRBASED_DELAY_DELTA";
			}
			UpdateMeasurementInfo();
		}
	}

	private void cbPinMeasureType_TextChanged(object sender, EventArgs e)
	{
		if (!initControls)
		{
			if (cbPinMeasureType.Text == "ACLR Based Pin Delta")
			{
				strPinMeasureType = "ACLRBASED_PIN_POUT_DELTA";
				cbPoutMeasureType.Text = "ACLR Based Pout Min";
				cbAclrMeasureType.Text = "ACLR Based ACLR Max";
				cbPoutDeltaMeasureType.Text = "ACLR Based Power Delta Max";
				cbCurrentMeasureType.Text = "ACLR Based Current Max";
				cbCNRMeasureType.Text = "ACLR Based CNR Max";
			}
			else
			{
				strPinMeasureType = "AMAMBASED_PIN_POUT_DELTA";
				cbPoutMeasureType.Text = "AMAM Based Pout Min";
				cbAclrMeasureType.Text = "AMAM Based ACLR Max";
				cbPoutDeltaMeasureType.Text = "AMAM Based Power Delta Max";
				cbCurrentMeasureType.Text = "AMAM Based Current Max";
				cbCNRMeasureType.Text = "AMAM Based CNR Max";
			}
			UpdateMeasurementInfo();
		}
	}

	private void cbPoutMeasureType_TextChanged(object sender, EventArgs e)
	{
		if (!initControls)
		{
			if (cbPoutMeasureType.Text == "ACLR Based Pout Min")
			{
				strPoutMeasureType = "ACLRBASED_POUT_MIN";
				cbPinMeasureType.Text = "ACLR Based Pin Delta";
				cbAclrMeasureType.Text = "ACLR Based ACLR Max";
				cbPoutDeltaMeasureType.Text = "ACLR Based Power Delta Max";
				cbCurrentMeasureType.Text = "ACLR Based Current Max";
				cbCNRMeasureType.Text = "ACLR Based CNR Max";
			}
			else
			{
				strPoutMeasureType = "AMAMBASED_POUT_MIN";
				cbPinMeasureType.Text = "AMAM Based Pin Delta";
				cbAclrMeasureType.Text = "AMAM Based ACLR Max";
				cbPoutDeltaMeasureType.Text = "AMAM Based Power Delta Max";
				cbCurrentMeasureType.Text = "AMAM Based Current Max";
				cbCNRMeasureType.Text = "AMAM Based CNR Max";
			}
			UpdateMeasurementInfo();
		}
	}

	private void cbAclrMeasureType_TextChanged(object sender, EventArgs e)
	{
		if (!initControls)
		{
			if (cbAclrMeasureType.Text == "ACLR Based ACLR Max")
			{
				strAclrMeasureType = "ACLRBASED_ACLR_MAX";
				cbPinMeasureType.Text = "ACLR Based Pin Delta";
				cbPoutMeasureType.Text = "ACLR Based Pout Min";
				cbPoutDeltaMeasureType.Text = "ACLR Based Power Delta Max";
				cbCurrentMeasureType.Text = "ACLR Based Current Max";
				cbCNRMeasureType.Text = "ACLR Based CNR Max";
			}
			else
			{
				strAclrMeasureType = "AMAMBASED_ACLR_MAX";
				cbPinMeasureType.Text = "AMAM Based Pin Delta";
				cbPoutMeasureType.Text = "AMAM Based Pout Min";
				cbPoutDeltaMeasureType.Text = "AMAM Based Power Delta Max";
				cbCurrentMeasureType.Text = "AMAM Based Current Max";
				cbCNRMeasureType.Text = "AMAM Based CNR Max";
			}
			UpdateMeasurementInfo();
		}
	}

	private void cbPoutDeltaMeasureType_TextChanged(object sender, EventArgs e)
	{
		if (!initControls)
		{
			if (cbPoutDeltaMeasureType.Text == "ACLR Based Power Delta Max")
			{
				strPoutDeltaMeasureType = "ACLRBASED_POUT_DELTA";
				cbPinMeasureType.Text = "ACLR Based Pin Delta";
				cbPoutMeasureType.Text = "ACLR Based Pout Min";
				cbAclrMeasureType.Text = "ACLR Based ACLR Max";
				cbCNRMeasureType.Text = "ACLR Based CNR Max";
			}
			else
			{
				strPoutDeltaMeasureType = "AMAMBASED_POUT_DELTA";
				cbPinMeasureType.Text = "AMAM Based Pin Delta";
				cbPoutMeasureType.Text = "AMAM Based Pout Min";
				cbAclrMeasureType.Text = "AMAM Based ACLR Max";
				cbCNRMeasureType.Text = "AMAM Based CNR Max";
			}
			UpdateMeasurementInfo();
		}
	}

	private void cbCurrentMeasureType_TextChanged(object sender, EventArgs e)
	{
		if (!initControls)
		{
			if (cbCurrentMeasureType.Text == "ACLR Based Current Max")
			{
				strCurrentMeasureType = "ACLRBASED_CURR_MAX";
				cbPinMeasureType.Text = "ACLR Based Pin Delta";
				cbPoutMeasureType.Text = "ACLR Based Pout Min";
				cbAclrMeasureType.Text = "ACLR Based ACLR Max";
				cbPoutDeltaMeasureType.Text = "ACLR Based Power Delta Max";
				cbCNRMeasureType.Text = "ACLR Based CNR Max";
			}
			else
			{
				strCurrentMeasureType = "AMAMBASED_CURR_MAX";
				cbPinMeasureType.Text = "AMAM Based Pin Delta";
				cbPoutMeasureType.Text = "AMAM Based Pout Min";
				cbAclrMeasureType.Text = "AMAM Based ACLR Max";
				cbPoutDeltaMeasureType.Text = "AMAM Based Power Delta Max";
				cbCNRMeasureType.Text = "AMAM Based CNR Max";
			}
			UpdateMeasurementInfo();
		}
	}

	private void cbCNRMeasureType_TextChanged(object sender, EventArgs e)
	{
		if (!initControls)
		{
			if (cbCNRMeasureType.Text == "ACLR Based CNR Max")
			{
				strCNRMeasureType = "ACLRBASED_CNR_MAX";
				cbPinMeasureType.Text = "ACLR Based Pin Delta";
				cbPoutMeasureType.Text = "ACLR Based Pout Min";
				cbAclrMeasureType.Text = "ACLR Based ACLR Max";
				cbPoutDeltaMeasureType.Text = "ACLR Based Power Delta Max";
				cbCurrentMeasureType.Text = "ACLR Based Current Max";
			}
			else
			{
				strCNRMeasureType = "AMAMBASED_CNR_MAX";
				cbPinMeasureType.Text = "AMAM Based Pin Delta";
				cbPoutMeasureType.Text = "AMAM Based Pout Min";
				cbAclrMeasureType.Text = "AMAM Based ACLR Max";
				cbPoutDeltaMeasureType.Text = "AMAM Based Power Delta Max";
				cbCurrentMeasureType.Text = "AMAM Based Current Max";
			}
			UpdateMeasurementInfo();
		}
	}

	private void cbDelayMeasureConstraint_SelectedIndexChanged(object sender, EventArgs e)
	{
		if (cbDelayMeasureConstraint.Text == "<")
		{
			strDelayMeasureConstraint = "Meas-Target";
		}
		else
		{
			strDelayMeasureConstraint = "Target-Meas";
		}
		UpdateMeasurementInfo();
	}

	private void cbPinMeasureConstraint_SelectedIndexChanged(object sender, EventArgs e)
	{
		if (cbPinMeasureConstraint.Text == "<")
		{
			strPinMeasureConstraint = "Meas-Target";
		}
		else
		{
			strPinMeasureConstraint = "Target-Meas";
		}
		UpdateMeasurementInfo();
	}

	private void cbPoutMeasureConstraint_SelectedIndexChanged(object sender, EventArgs e)
	{
		if (cbPoutMeasureConstraint.Text == "<")
		{
			strPoutMeasureConstraint = "Meas-Target";
		}
		else
		{
			strPoutMeasureConstraint = "Target-Meas";
		}
		UpdateMeasurementInfo();
	}

	private void cbAclrMeasureConstraint_SelectedIndexChanged(object sender, EventArgs e)
	{
		if (cbAclrMeasureConstraint.Text == "<")
		{
			strAclrMeasureConstraint = "Meas-Target";
		}
		else
		{
			strAclrMeasureConstraint = "Target-Meas";
		}
		UpdateMeasurementInfo();
	}

	private void cbPoutDeltaMeasureConstraint_SelectedIndexChanged(object sender, EventArgs e)
	{
		if (cbPoutDeltaMeasureConstraint.Text == "<")
		{
			strPoutDeltaMeasureConstraint = "Meas-Target";
		}
		else
		{
			strPoutDeltaMeasureConstraint = "Target-Meas";
		}
		UpdateMeasurementInfo();
	}

	private void cbCurrentMeasureConstraint_SelectedIndexChanged(object sender, EventArgs e)
	{
		if (cbCurrentMeasureConstraint.Text == "<")
		{
			strCurrentMeasureConstraint = "Meas-Target";
		}
		else
		{
			strCurrentMeasureConstraint = "Target-Meas";
		}
		UpdateMeasurementInfo();
	}

	private void cbCNRMeasureConstraint_SelectedIndexChanged(object sender, EventArgs e)
	{
		if (cbCNRMeasureConstraint.Text == "<")
		{
			strCNRMeasureConstraint = "Meas-Target";
		}
		else
		{
			strCNRMeasureConstraint = "Target-Meas";
		}
		UpdateMeasurementInfo();
	}

	private void tbDelayMeasureTarget_TextChanged(object sender, EventArgs e)
	{
		strDelayMeasureTarget = tbDelayMeasureTarget.Text;
		UpdateMeasurementInfo();
	}

	private void tbPinMeasureTarget_TextChanged(object sender, EventArgs e)
	{
		strPinMeasureTarget = tbPinMeasureTarget.Text;
		UpdateMeasurementInfo();
	}

	private void tbPoutMeasureTarget_TextChanged(object sender, EventArgs e)
	{
		strPoutMeasureTarget = tbPoutMeasureTarget.Text;
		UpdateMeasurementInfo();
	}

	private void tbAclrMeasureTarget_TextChanged(object sender, EventArgs e)
	{
		strAclrMeasureTarget = tbAclrMeasureTarget.Text;
		UpdateMeasurementInfo();
	}

	private void tbPoutDeltaMeasureTarget_TextChanged(object sender, EventArgs e)
	{
		strPoutDeltaMeasureTarget = tbPoutDeltaMeasureTarget.Text;
		UpdateMeasurementInfo();
	}

	private void tbCurrentMeasureTarget_TextChanged(object sender, EventArgs e)
	{
		strCurrentMeasureTarget = tbCurrentMeasureTarget.Text;
		UpdateMeasurementInfo();
	}

	private void tbCNRMeasureTarget_TextChanged(object sender, EventArgs e)
	{
		strCNRMeasureTarget = tbCNRMeasureTarget.Text;
		UpdateMeasurementInfo();
	}

	public void UpdateMeasurementInfo()
	{
		if (!initControls)
		{
			StrMeasureTypes = "";
			if (bMeasureDelay)
			{
				StrMeasureTypes = strDelayMeasureType + ",";
			}
			if (bMeasurePin)
			{
				StrMeasureTypes = StrMeasureTypes + strPinMeasureType + ",";
			}
			if (bMeasurePout)
			{
				StrMeasureTypes = StrMeasureTypes + strPoutMeasureType + ",";
			}
			if (bMeasureACLR)
			{
				StrMeasureTypes = StrMeasureTypes + strAclrMeasureType + ",";
			}
			if (bMeasurePoutDelta)
			{
				StrMeasureTypes = StrMeasureTypes + strPoutDeltaMeasureType + ",";
			}
			if (bMeasureCurrent)
			{
				StrMeasureTypes = StrMeasureTypes + strCurrentMeasureType + ",";
			}
			if (bMeasureCNR)
			{
				StrMeasureTypes += strCNRMeasureType;
			}
			if (StrMeasureTypes.EndsWith(","))
			{
				StrMeasureTypes = StrMeasureTypes.Remove(StrMeasureTypes.Length - 1);
			}
			StrMeasureTargets = "";
			if (bMeasureDelay)
			{
				StrMeasureTargets = strDelayMeasureTarget + ",";
			}
			if (bMeasurePin)
			{
				StrMeasureTargets = StrMeasureTargets + strPinMeasureTarget + ",";
			}
			if (bMeasurePout)
			{
				StrMeasureTargets = StrMeasureTargets + strPoutMeasureTarget + ",";
			}
			if (bMeasureACLR)
			{
				StrMeasureTargets = StrMeasureTargets + strAclrMeasureTarget + ",";
			}
			if (bMeasurePoutDelta)
			{
				StrMeasureTargets = StrMeasureTargets + strPoutDeltaMeasureTarget + ",";
			}
			if (bMeasureCurrent)
			{
				StrMeasureTargets = StrMeasureTargets + strCurrentMeasureTarget + ",";
			}
			if (bMeasureCNR)
			{
				StrMeasureTargets += strCNRMeasureTarget;
			}
			if (StrMeasureTargets.EndsWith(","))
			{
				StrMeasureTargets = StrMeasureTargets.Remove(StrMeasureTargets.Length - 1);
			}
			StrMeasureConstraints = "";
			if (bMeasureDelay)
			{
				StrMeasureConstraints = strDelayMeasureConstraint + ",";
			}
			if (bMeasurePin)
			{
				StrMeasureConstraints = StrMeasureConstraints + strPinMeasureConstraint + ",";
			}
			if (bMeasurePout)
			{
				StrMeasureConstraints = StrMeasureConstraints + strPoutMeasureConstraint + ",";
			}
			if (bMeasureACLR)
			{
				StrMeasureConstraints = StrMeasureConstraints + strAclrMeasureConstraint + ",";
			}
			if (bMeasurePoutDelta)
			{
				StrMeasureConstraints = StrMeasureConstraints + strPoutDeltaMeasureConstraint + ",";
			}
			if (bMeasureCurrent)
			{
				StrMeasureConstraints = StrMeasureConstraints + strCurrentMeasureConstraint + ",";
			}
			if (bMeasureCNR)
			{
				StrMeasureConstraints += strCNRMeasureConstraint;
			}
			if (StrMeasureConstraints.EndsWith(","))
			{
				StrMeasureConstraints = StrMeasureConstraints.Remove(StrMeasureConstraints.Length - 1);
			}
			MeasureCheckBoxes[Convert.ToInt16(eCheckBoxes.DELAY)] = bMeasureDelay;
			MeasureCheckBoxes[Convert.ToInt16(eCheckBoxes.PIN)] = bMeasurePin;
			MeasureCheckBoxes[Convert.ToInt16(eCheckBoxes.POT)] = bMeasurePout;
			MeasureCheckBoxes[Convert.ToInt16(eCheckBoxes.ACLR)] = bMeasureACLR;
			MeasureCheckBoxes[Convert.ToInt16(eCheckBoxes.POUT_DELTA)] = bMeasurePoutDelta;
			MeasureCheckBoxes[Convert.ToInt16(eCheckBoxes.CURRENT)] = bMeasureCurrent;
			MeasureCheckBoxes[Convert.ToInt16(eCheckBoxes.CNR)] = bMeasureCNR;
		}
	}

	public void UpdateDefaultMeasurementInfo()
	{
		StrDefaultMeasureTargets = "";
		if (bMeasureDelay)
		{
			StrDefaultMeasureTargets = strDefaultDelayMeasureTarget + ",";
		}
		if (bMeasurePin)
		{
			StrDefaultMeasureTargets = StrDefaultMeasureTargets + strDefaultPinMeasureTarget + ",";
		}
		if (bMeasurePout)
		{
			StrDefaultMeasureTargets = StrDefaultMeasureTargets + strDefaultPoutMeasureTarget + ",";
		}
		if (bMeasureACLR)
		{
			StrDefaultMeasureTargets = StrDefaultMeasureTargets + strDefaultAclrMeasureTarget + ",";
		}
		if (bMeasurePoutDelta)
		{
			StrDefaultMeasureTargets = StrDefaultMeasureTargets + strPoutDeltaMeasureTarget + ",";
		}
		if (StrDefaultMeasureTargets.EndsWith(","))
		{
			StrDefaultMeasureTargets = StrDefaultMeasureTargets.Remove(StrDefaultMeasureTargets.Length - 1);
		}
	}

	public void ConfigureMeasurementTypes(bool LoadingScenario)
	{
		string[] array = StrMeasureTypes.Split(',');
		string[] array2 = StrMeasureConstraints.Split(',');
		string[] array3 = StrMeasureTargets.Split(',');
		bool[] array4 = new bool[7];
		MeasureCheckBoxes.CopyTo(array4, 0);
		initControls = true;
		ClearControls();
		for (int i = 0; i < array.Length; i++)
		{
			if (array[i].Contains("DELAY"))
			{
				strDelayMeasureType = array[i];
				cbDelayMeasureType.Text = (array[i].Contains("FW") ? "FW Based Delay Delta" : "ACLR Based Delay Delta");
				tbDelayMeasureTarget.Text = array3[i];
				if (!LoadingScenario)
				{
					cbMeasureDelay.Checked = true;
					MeasureCheckBoxes[Convert.ToInt16(eCheckBoxes.DELAY)] = true;
				}
				else
				{
					cbMeasureDelay.Checked = array4[Convert.ToInt16(eCheckBoxes.DELAY)];
					MeasureCheckBoxes[Convert.ToInt16(eCheckBoxes.DELAY)] = cbMeasureDelay.Checked;
				}
				if (array2[i] == "Meas-Target")
				{
					cbDelayMeasureConstraint.Text = "<";
				}
				else
				{
					cbDelayMeasureConstraint.Text = ">";
				}
			}
			else if (array[i].Contains("PIN_POUT"))
			{
				strPinMeasureType = array[i];
				cbPinMeasureType.Text = (array[i].Contains("ACLR") ? "ACLR Based Pin Delta" : "AMAM Based Pin Delta");
				tbPinMeasureTarget.Text = array3[i];
				if (!LoadingScenario)
				{
					cbMeasurePin.Checked = true;
					MeasureCheckBoxes[Convert.ToInt16(eCheckBoxes.PIN)] = true;
				}
				else
				{
					cbMeasurePin.Checked = array4[Convert.ToInt16(eCheckBoxes.PIN)];
					MeasureCheckBoxes[Convert.ToInt16(eCheckBoxes.PIN)] = cbMeasurePin.Checked;
				}
				if (array2[i] == "Meas-Target")
				{
					cbPinMeasureConstraint.Text = "<";
				}
				else
				{
					cbPinMeasureConstraint.Text = ">";
				}
			}
			else if (array[i].Contains("POUT_MIN"))
			{
				strPoutMeasureType = array[i];
				cbPoutMeasureType.Text = (array[i].Contains("ACLR") ? "ACLR Based Pout Min" : "AMAM Based Pout Min");
				tbPoutMeasureTarget.Text = array3[i];
				if (!LoadingScenario)
				{
					cbMeasurePout.Checked = true;
					MeasureCheckBoxes[Convert.ToInt16(eCheckBoxes.POT)] = true;
				}
				else
				{
					cbMeasurePout.Checked = array4[Convert.ToInt16(eCheckBoxes.POT)];
					MeasureCheckBoxes[Convert.ToInt16(eCheckBoxes.POT)] = cbMeasurePout.Checked;
				}
				if (array2[i] == "Meas-Target")
				{
					cbPoutMeasureConstraint.Text = "<";
				}
				else
				{
					cbPoutMeasureConstraint.Text = ">";
				}
			}
			else if (array[i].Contains("ACLR_MAX"))
			{
				strAclrMeasureType = array[i];
				cbAclrMeasureType.Text = (array[i].Contains("AMAM") ? "AMAM Based ACLR Max" : "ACLR Based ACLR Max");
				tbAclrMeasureTarget.Text = array3[i];
				if (!LoadingScenario)
				{
					cbMeasureACLR.Checked = true;
					MeasureCheckBoxes[Convert.ToInt16(eCheckBoxes.ACLR)] = true;
				}
				else
				{
					cbMeasureACLR.Checked = array4[Convert.ToInt16(eCheckBoxes.ACLR)];
					MeasureCheckBoxes[Convert.ToInt16(eCheckBoxes.ACLR)] = cbMeasureACLR.Checked;
				}
				if (array2[i] == "Meas-Target")
				{
					cbAclrMeasureConstraint.Text = "<";
				}
				else
				{
					cbAclrMeasureConstraint.Text = ">";
				}
			}
			else if (array[i].Contains("POUT_DELTA"))
			{
				strPoutDeltaMeasureType = array[i];
				cbPoutDeltaMeasureType.Text = (array[i].Contains("AMAM") ? "AMAM Based Power Delta Max" : "ACLR Based Power Delta Max");
				tbPoutDeltaMeasureTarget.Text = array3[i];
				if (!LoadingScenario)
				{
					cbMeasurePoutDelta.Checked = true;
					MeasureCheckBoxes[Convert.ToInt16(eCheckBoxes.POUT_DELTA)] = true;
				}
				else
				{
					cbMeasurePoutDelta.Checked = array4[Convert.ToInt16(eCheckBoxes.POUT_DELTA)];
					MeasureCheckBoxes[Convert.ToInt16(eCheckBoxes.POUT_DELTA)] = cbMeasurePoutDelta.Checked;
				}
				if (array2[i] == "Meas-Target")
				{
					cbPoutDeltaMeasureConstraint.Text = "<";
				}
				else
				{
					cbPoutDeltaMeasureConstraint.Text = ">";
				}
			}
			else if (array[i].Contains("CURR"))
			{
				strCurrentMeasureType = array[i];
				cbCurrentMeasureType.Text = "Current";
				tbCurrentMeasureTarget.Text = array3[i];
				if (!LoadingScenario)
				{
					cbMeasureCurrent.Checked = true;
					MeasureCheckBoxes[Convert.ToInt16(eCheckBoxes.CURRENT)] = true;
				}
				else
				{
					cbMeasureCurrent.Checked = array4[Convert.ToInt16(eCheckBoxes.CURRENT)];
					MeasureCheckBoxes[Convert.ToInt16(eCheckBoxes.CURRENT)] = cbMeasureCurrent.Checked;
				}
				if (array2[i] == "Meas-Target")
				{
					cbCurrentMeasureConstraint.Text = "<";
				}
				else
				{
					cbCurrentMeasureConstraint.Text = ">";
				}
			}
			else if (array[i].Contains("CNR"))
			{
				cbCNRMeasureType.Text = "CNR";
				tbCNRMeasureTarget.Text = array3[i];
				if (!LoadingScenario)
				{
					cbMeasureCNR.Checked = true;
					MeasureCheckBoxes[Convert.ToInt16(eCheckBoxes.CNR)] = true;
				}
				else
				{
					cbMeasureCNR.Checked = array4[Convert.ToInt16(eCheckBoxes.CNR)];
					MeasureCheckBoxes[Convert.ToInt16(eCheckBoxes.CNR)] = cbMeasureCNR.Checked;
				}
				if (array2[i] == "Meas-Target")
				{
					cbCNRMeasureConstraint.Text = "<";
				}
				else
				{
					cbCNRMeasureConstraint.Text = ">";
				}
			}
		}
		initControls = false;
	}

	public void ConfigureDefaultMeasurementTargets()
	{
		string[] array = StrMeasureTypes.Split(',');
		string[] array2 = StrDefaultMeasureTargets.Split(',');
		if (initControls)
		{
			return;
		}
		for (int i = 0; i < array.Length; i++)
		{
			if (array[i].Contains("DELAY"))
			{
				strDefaultDelayMeasureTarget = array2[i];
			}
			else if (array[i].Contains("PIN_POUT"))
			{
				strDefaultPinMeasureTarget = array2[i];
			}
			else if (array[i].Contains("POUT_MIN"))
			{
				strDefaultPoutMeasureTarget = array2[i];
			}
			else if (array[i].Contains("ACLR_MAX"))
			{
				strDefaultAclrMeasureTarget = array2[i];
			}
		}
		UpdateDefaultMeasurementInfo();
	}

	public void ClearControls()
	{
		bMeasureDelay = false;
		cbMeasureDelay.Checked = false;
		bMeasurePin = false;
		cbMeasurePin.Checked = false;
		bMeasurePout = false;
		cbMeasurePout.Checked = false;
		bMeasureACLR = false;
		cbMeasureACLR.Checked = false;
		bMeasurePoutDelta = false;
		cbMeasurePoutDelta.Checked = false;
		bMeasureCurrent = false;
		cbMeasureCurrent.Checked = false;
		bMeasureCNR = false;
		cbMeasureCNR.Checked = false;
		for (int i = 0; i < MeasureCheckBoxes.Length; i++)
		{
			MeasureCheckBoxes[i] = false;
		}
		strDelayMeasureType = "ACLRBASED_DELAY_DELTA";
		cbDelayMeasureType.Text = "ACLR Based Delay Delta";
		strPinMeasureType = "";
		cbPinMeasureType.Text = "";
		strPoutMeasureType = "";
		cbPoutMeasureType.Text = "";
		strAclrMeasureType = "";
		cbAclrMeasureType.Text = "";
		strPoutDeltaMeasureType = "AMAMBASED_POUT_DELTA";
		cbPoutDeltaMeasureType.Text = "AMAM Based Power Delta Max";
		strCurrentMeasureType = "AMAMBASED_CURR_MAX";
		cbCurrentMeasureType.Text = "AMAM Based Current Max";
		strCNRMeasureType = "AMAMBASED_CNR_MAX";
		cbCNRMeasureType.Text = "AMAM Based CNR Max";
		strDelayMeasureConstraint = "Meas-Target";
		cbDelayMeasureConstraint.Text = "<";
		strPinMeasureConstraint = "Meas-Target";
		cbPinMeasureConstraint.Text = "<";
		strPoutMeasureConstraint = "Target-Meas";
		cbPoutMeasureConstraint.Text = ">";
		strAclrMeasureConstraint = "Meas-Target";
		cbAclrMeasureConstraint.Text = "<";
		strPoutDeltaMeasureConstraint = "Meas-Target";
		cbPoutDeltaMeasureConstraint.Text = "<";
		strCurrentMeasureConstraint = "Meas-Target";
		cbCurrentMeasureConstraint.Text = "<";
		strCNRMeasureConstraint = "Meas-Target";
		cbCNRMeasureConstraint.Text = "<";
		strDelayMeasureTarget = "5";
		tbDelayMeasureTarget.Text = "5";
		strPinMeasureTarget = "";
		tbPinMeasureTarget.Text = "";
		strPoutMeasureTarget = "";
		tbPoutMeasureTarget.Text = "";
		strAclrMeasureTarget = "";
		tbAclrMeasureTarget.Text = "";
		strPoutDeltaMeasureTarget = "";
		tbPoutDeltaMeasureTarget.Text = "";
		strCurrentMeasureTarget = "";
		tbCurrentMeasureTarget.Text = "";
		strCNRMeasureTarget = "";
		tbCNRMeasureTarget.Text = "";
	}

	public void EnableDelayControls(bool state)
	{
		initControls = true;
		if (state)
		{
			cbMeasureDelay.Enabled = false;
			cbMeasureDelay.Checked = true;
			cbDelayMeasureType.Enabled = true;
			tbDelayMeasureTarget.Enabled = true;
			if (strDelayMeasureConstraint == "Meas-Target")
			{
				cbDelayMeasureConstraint.Text = "<";
			}
			else
			{
				cbDelayMeasureConstraint.Text = ">";
			}
			tbDelayMeasureTarget.Text = strDelayMeasureTarget;
		}
		else
		{
			cbMeasureDelay.Enabled = false;
			cbMeasureDelay.Checked = false;
			cbDelayMeasureType.Enabled = false;
			tbDelayMeasureTarget.Enabled = false;
		}
		initControls = false;
	}

	protected override void Dispose(bool disposing)
	{
		if (disposing && components != null)
		{
			components.Dispose();
		}
		base.Dispose(disposing);
	}

	private void InitializeComponent()
	{
		this.cbMeasureDelay = new System.Windows.Forms.CheckBox();
		this.label1 = new System.Windows.Forms.Label();
		this.cbDelayMeasureType = new System.Windows.Forms.ComboBox();
		this.label2 = new System.Windows.Forms.Label();
		this.tbDelayMeasureTarget = new System.Windows.Forms.TextBox();
		this.label3 = new System.Windows.Forms.Label();
		this.label4 = new System.Windows.Forms.Label();
		this.cbDelayMeasureConstraint = new System.Windows.Forms.ComboBox();
		this.cbPinMeasureConstraint = new System.Windows.Forms.ComboBox();
		this.tbPinMeasureTarget = new System.Windows.Forms.TextBox();
		this.cbPinMeasureType = new System.Windows.Forms.ComboBox();
		this.cbMeasurePin = new System.Windows.Forms.CheckBox();
		this.cbPoutMeasureConstraint = new System.Windows.Forms.ComboBox();
		this.tbPoutMeasureTarget = new System.Windows.Forms.TextBox();
		this.cbPoutMeasureType = new System.Windows.Forms.ComboBox();
		this.cbMeasurePout = new System.Windows.Forms.CheckBox();
		this.cbAclrMeasureConstraint = new System.Windows.Forms.ComboBox();
		this.tbAclrMeasureTarget = new System.Windows.Forms.TextBox();
		this.cbAclrMeasureType = new System.Windows.Forms.ComboBox();
		this.cbMeasureACLR = new System.Windows.Forms.CheckBox();
		this.cbCurrentMeasureConstraint = new System.Windows.Forms.ComboBox();
		this.tbCurrentMeasureTarget = new System.Windows.Forms.TextBox();
		this.cbCurrentMeasureType = new System.Windows.Forms.ComboBox();
		this.cbMeasureCurrent = new System.Windows.Forms.CheckBox();
		this.cbCNRMeasureConstraint = new System.Windows.Forms.ComboBox();
		this.tbCNRMeasureTarget = new System.Windows.Forms.TextBox();
		this.cbCNRMeasureType = new System.Windows.Forms.ComboBox();
		this.cbMeasureCNR = new System.Windows.Forms.CheckBox();
		this.cbPoutDeltaMeasureConstraint = new System.Windows.Forms.ComboBox();
		this.tbPoutDeltaMeasureTarget = new System.Windows.Forms.TextBox();
		this.cbPoutDeltaMeasureType = new System.Windows.Forms.ComboBox();
		this.cbMeasurePoutDelta = new System.Windows.Forms.CheckBox();
		base.SuspendLayout();
		this.cbMeasureDelay.AutoSize = true;
		this.cbMeasureDelay.Location = new System.Drawing.Point(31, 39);
		this.cbMeasureDelay.Name = "cbMeasureDelay";
		this.cbMeasureDelay.Size = new System.Drawing.Size(15, 14);
		this.cbMeasureDelay.TabIndex = 0;
		this.cbMeasureDelay.UseVisualStyleBackColor = true;
		this.cbMeasureDelay.CheckedChanged += new System.EventHandler(cbMeasureDelay_CheckedChanged);
		this.label1.AutoSize = true;
		this.label1.Location = new System.Drawing.Point(25, 16);
		this.label1.Name = "label1";
		this.label1.Size = new System.Drawing.Size(40, 13);
		this.label1.TabIndex = 1;
		this.label1.Text = "Enable";
		this.cbDelayMeasureType.FormattingEnabled = true;
		this.cbDelayMeasureType.Items.AddRange(new object[2] { "FW Based Delay Delta", "ACLR Based Delay Delta" });
		this.cbDelayMeasureType.Location = new System.Drawing.Point(93, 36);
		this.cbDelayMeasureType.Name = "cbDelayMeasureType";
		this.cbDelayMeasureType.Size = new System.Drawing.Size(193, 21);
		this.cbDelayMeasureType.TabIndex = 2;
		this.cbDelayMeasureType.TextChanged += new System.EventHandler(cbDelayMeasureType_TextChanged);
		this.label2.AutoSize = true;
		this.label2.Location = new System.Drawing.Point(101, 16);
		this.label2.Name = "label2";
		this.label2.Size = new System.Drawing.Size(71, 13);
		this.label2.TabIndex = 3;
		this.label2.Text = "Measurement";
		this.tbDelayMeasureTarget.Location = new System.Drawing.Point(328, 36);
		this.tbDelayMeasureTarget.Name = "tbDelayMeasureTarget";
		this.tbDelayMeasureTarget.Size = new System.Drawing.Size(100, 20);
		this.tbDelayMeasureTarget.TabIndex = 4;
		this.tbDelayMeasureTarget.TextChanged += new System.EventHandler(tbDelayMeasureTarget_TextChanged);
		this.label3.AutoSize = true;
		this.label3.Location = new System.Drawing.Point(332, 16);
		this.label3.Name = "label3";
		this.label3.Size = new System.Drawing.Size(28, 13);
		this.label3.TabIndex = 5;
		this.label3.Text = "Limit";
		this.label4.AutoSize = true;
		this.label4.Location = new System.Drawing.Point(488, 16);
		this.label4.Name = "label4";
		this.label4.Size = new System.Drawing.Size(57, 13);
		this.label4.TabIndex = 6;
		this.label4.Text = "Evaluation";
		this.cbDelayMeasureConstraint.Enabled = false;
		this.cbDelayMeasureConstraint.FormattingEnabled = true;
		this.cbDelayMeasureConstraint.Items.AddRange(new object[2] { ">", "<" });
		this.cbDelayMeasureConstraint.Location = new System.Drawing.Point(481, 36);
		this.cbDelayMeasureConstraint.Name = "cbDelayMeasureConstraint";
		this.cbDelayMeasureConstraint.Size = new System.Drawing.Size(83, 21);
		this.cbDelayMeasureConstraint.TabIndex = 7;
		this.cbDelayMeasureConstraint.SelectedIndexChanged += new System.EventHandler(cbDelayMeasureConstraint_SelectedIndexChanged);
		this.cbPinMeasureConstraint.Enabled = false;
		this.cbPinMeasureConstraint.FormattingEnabled = true;
		this.cbPinMeasureConstraint.Items.AddRange(new object[2] { ">", "<" });
		this.cbPinMeasureConstraint.Location = new System.Drawing.Point(481, 55);
		this.cbPinMeasureConstraint.Name = "cbPinMeasureConstraint";
		this.cbPinMeasureConstraint.Size = new System.Drawing.Size(83, 21);
		this.cbPinMeasureConstraint.TabIndex = 11;
		this.cbPinMeasureConstraint.SelectedIndexChanged += new System.EventHandler(cbPinMeasureConstraint_SelectedIndexChanged);
		this.tbPinMeasureTarget.Location = new System.Drawing.Point(328, 55);
		this.tbPinMeasureTarget.Name = "tbPinMeasureTarget";
		this.tbPinMeasureTarget.Size = new System.Drawing.Size(100, 20);
		this.tbPinMeasureTarget.TabIndex = 10;
		this.tbPinMeasureTarget.TextChanged += new System.EventHandler(tbPinMeasureTarget_TextChanged);
		this.cbPinMeasureType.FormattingEnabled = true;
		this.cbPinMeasureType.Items.AddRange(new object[2] { "AMAM Based Pin Delta", "ACLR Based Pin Delta" });
		this.cbPinMeasureType.Location = new System.Drawing.Point(93, 55);
		this.cbPinMeasureType.Name = "cbPinMeasureType";
		this.cbPinMeasureType.Size = new System.Drawing.Size(193, 21);
		this.cbPinMeasureType.TabIndex = 9;
		this.cbPinMeasureType.TextChanged += new System.EventHandler(cbPinMeasureType_TextChanged);
		this.cbMeasurePin.AutoSize = true;
		this.cbMeasurePin.Location = new System.Drawing.Point(31, 58);
		this.cbMeasurePin.Name = "cbMeasurePin";
		this.cbMeasurePin.Size = new System.Drawing.Size(15, 14);
		this.cbMeasurePin.TabIndex = 8;
		this.cbMeasurePin.UseVisualStyleBackColor = true;
		this.cbMeasurePin.CheckedChanged += new System.EventHandler(cbMeasurePin_CheckedChanged);
		this.cbPoutMeasureConstraint.Enabled = false;
		this.cbPoutMeasureConstraint.FormattingEnabled = true;
		this.cbPoutMeasureConstraint.Items.AddRange(new object[2] { ">", "<" });
		this.cbPoutMeasureConstraint.Location = new System.Drawing.Point(481, 75);
		this.cbPoutMeasureConstraint.Name = "cbPoutMeasureConstraint";
		this.cbPoutMeasureConstraint.Size = new System.Drawing.Size(83, 21);
		this.cbPoutMeasureConstraint.TabIndex = 15;
		this.cbPoutMeasureConstraint.SelectedIndexChanged += new System.EventHandler(cbPoutMeasureConstraint_SelectedIndexChanged);
		this.tbPoutMeasureTarget.Location = new System.Drawing.Point(328, 75);
		this.tbPoutMeasureTarget.Name = "tbPoutMeasureTarget";
		this.tbPoutMeasureTarget.Size = new System.Drawing.Size(100, 20);
		this.tbPoutMeasureTarget.TabIndex = 14;
		this.tbPoutMeasureTarget.TextChanged += new System.EventHandler(tbPoutMeasureTarget_TextChanged);
		this.cbPoutMeasureType.FormattingEnabled = true;
		this.cbPoutMeasureType.Items.AddRange(new object[2] { "AMAM Based Pout Min", "ACLR Based Pout Min" });
		this.cbPoutMeasureType.Location = new System.Drawing.Point(93, 75);
		this.cbPoutMeasureType.Name = "cbPoutMeasureType";
		this.cbPoutMeasureType.Size = new System.Drawing.Size(193, 21);
		this.cbPoutMeasureType.TabIndex = 13;
		this.cbPoutMeasureType.TextChanged += new System.EventHandler(cbPoutMeasureType_TextChanged);
		this.cbMeasurePout.AutoSize = true;
		this.cbMeasurePout.Location = new System.Drawing.Point(31, 78);
		this.cbMeasurePout.Name = "cbMeasurePout";
		this.cbMeasurePout.Size = new System.Drawing.Size(15, 14);
		this.cbMeasurePout.TabIndex = 12;
		this.cbMeasurePout.UseVisualStyleBackColor = true;
		this.cbMeasurePout.CheckedChanged += new System.EventHandler(cbMeasurePout_CheckedChanged);
		this.cbAclrMeasureConstraint.Enabled = false;
		this.cbAclrMeasureConstraint.FormattingEnabled = true;
		this.cbAclrMeasureConstraint.Items.AddRange(new object[2] { ">", "<" });
		this.cbAclrMeasureConstraint.Location = new System.Drawing.Point(481, 95);
		this.cbAclrMeasureConstraint.Name = "cbAclrMeasureConstraint";
		this.cbAclrMeasureConstraint.Size = new System.Drawing.Size(83, 21);
		this.cbAclrMeasureConstraint.TabIndex = 19;
		this.cbAclrMeasureConstraint.SelectedIndexChanged += new System.EventHandler(cbAclrMeasureConstraint_SelectedIndexChanged);
		this.tbAclrMeasureTarget.Location = new System.Drawing.Point(328, 95);
		this.tbAclrMeasureTarget.Name = "tbAclrMeasureTarget";
		this.tbAclrMeasureTarget.Size = new System.Drawing.Size(100, 20);
		this.tbAclrMeasureTarget.TabIndex = 18;
		this.tbAclrMeasureTarget.TextChanged += new System.EventHandler(tbAclrMeasureTarget_TextChanged);
		this.cbAclrMeasureType.FormattingEnabled = true;
		this.cbAclrMeasureType.Items.AddRange(new object[2] { "AMAM Based ACLR Max", "ACLR Based ACLR Max" });
		this.cbAclrMeasureType.Location = new System.Drawing.Point(93, 95);
		this.cbAclrMeasureType.Name = "cbAclrMeasureType";
		this.cbAclrMeasureType.Size = new System.Drawing.Size(193, 21);
		this.cbAclrMeasureType.TabIndex = 17;
		this.cbAclrMeasureType.TextChanged += new System.EventHandler(cbAclrMeasureType_TextChanged);
		this.cbMeasureACLR.AutoSize = true;
		this.cbMeasureACLR.Location = new System.Drawing.Point(31, 98);
		this.cbMeasureACLR.Name = "cbMeasureACLR";
		this.cbMeasureACLR.Size = new System.Drawing.Size(15, 14);
		this.cbMeasureACLR.TabIndex = 16;
		this.cbMeasureACLR.UseVisualStyleBackColor = true;
		this.cbMeasureACLR.CheckedChanged += new System.EventHandler(cbMeasureACLR_CheckedChanged);
		this.cbCurrentMeasureConstraint.Enabled = false;
		this.cbCurrentMeasureConstraint.FormattingEnabled = true;
		this.cbCurrentMeasureConstraint.Items.AddRange(new object[2] { ">", "<" });
		this.cbCurrentMeasureConstraint.Location = new System.Drawing.Point(481, 135);
		this.cbCurrentMeasureConstraint.Name = "cbCurrentMeasureConstraint";
		this.cbCurrentMeasureConstraint.Size = new System.Drawing.Size(83, 21);
		this.cbCurrentMeasureConstraint.TabIndex = 23;
		this.cbCurrentMeasureConstraint.SelectedIndexChanged += new System.EventHandler(cbCurrentMeasureConstraint_SelectedIndexChanged);
		this.tbCurrentMeasureTarget.Enabled = false;
		this.tbCurrentMeasureTarget.Location = new System.Drawing.Point(328, 135);
		this.tbCurrentMeasureTarget.Name = "tbCurrentMeasureTarget";
		this.tbCurrentMeasureTarget.Size = new System.Drawing.Size(100, 20);
		this.tbCurrentMeasureTarget.TabIndex = 22;
		this.tbCurrentMeasureTarget.TextChanged += new System.EventHandler(tbCurrentMeasureTarget_TextChanged);
		this.cbCurrentMeasureType.AllowDrop = true;
		this.cbCurrentMeasureType.Enabled = false;
		this.cbCurrentMeasureType.FormattingEnabled = true;
		this.cbCurrentMeasureType.Items.AddRange(new object[2] { "AMAM Based Current Max", "ACLR Based Current Max" });
		this.cbCurrentMeasureType.Location = new System.Drawing.Point(93, 135);
		this.cbCurrentMeasureType.Name = "cbCurrentMeasureType";
		this.cbCurrentMeasureType.Size = new System.Drawing.Size(193, 21);
		this.cbCurrentMeasureType.TabIndex = 21;
		this.cbCurrentMeasureType.TextChanged += new System.EventHandler(cbCurrentMeasureType_TextChanged);
		this.cbMeasureCurrent.AutoSize = true;
		this.cbMeasureCurrent.Enabled = false;
		this.cbMeasureCurrent.Location = new System.Drawing.Point(31, 138);
		this.cbMeasureCurrent.Name = "cbMeasureCurrent";
		this.cbMeasureCurrent.Size = new System.Drawing.Size(15, 14);
		this.cbMeasureCurrent.TabIndex = 20;
		this.cbMeasureCurrent.UseVisualStyleBackColor = true;
		this.cbMeasureCurrent.CheckedChanged += new System.EventHandler(cbMeasureCurrent_CheckedChanged);
		this.cbCNRMeasureConstraint.Enabled = false;
		this.cbCNRMeasureConstraint.FormattingEnabled = true;
		this.cbCNRMeasureConstraint.Items.AddRange(new object[2] { ">", "<" });
		this.cbCNRMeasureConstraint.Location = new System.Drawing.Point(481, 155);
		this.cbCNRMeasureConstraint.Name = "cbCNRMeasureConstraint";
		this.cbCNRMeasureConstraint.Size = new System.Drawing.Size(83, 21);
		this.cbCNRMeasureConstraint.TabIndex = 27;
		this.cbCNRMeasureConstraint.SelectedIndexChanged += new System.EventHandler(cbCNRMeasureConstraint_SelectedIndexChanged);
		this.tbCNRMeasureTarget.Enabled = false;
		this.tbCNRMeasureTarget.Location = new System.Drawing.Point(328, 155);
		this.tbCNRMeasureTarget.Name = "tbCNRMeasureTarget";
		this.tbCNRMeasureTarget.Size = new System.Drawing.Size(100, 20);
		this.tbCNRMeasureTarget.TabIndex = 26;
		this.tbCNRMeasureTarget.TextChanged += new System.EventHandler(tbCNRMeasureTarget_TextChanged);
		this.cbCNRMeasureType.Enabled = false;
		this.cbCNRMeasureType.FormattingEnabled = true;
		this.cbCNRMeasureType.Items.AddRange(new object[2] { "AMAM Based CNR Max", "ACLR Based CNR Max" });
		this.cbCNRMeasureType.Location = new System.Drawing.Point(93, 155);
		this.cbCNRMeasureType.Name = "cbCNRMeasureType";
		this.cbCNRMeasureType.Size = new System.Drawing.Size(193, 21);
		this.cbCNRMeasureType.TabIndex = 25;
		this.cbCNRMeasureType.TextChanged += new System.EventHandler(cbCNRMeasureType_TextChanged);
		this.cbMeasureCNR.AutoSize = true;
		this.cbMeasureCNR.Enabled = false;
		this.cbMeasureCNR.Location = new System.Drawing.Point(31, 158);
		this.cbMeasureCNR.Name = "cbMeasureCNR";
		this.cbMeasureCNR.Size = new System.Drawing.Size(15, 14);
		this.cbMeasureCNR.TabIndex = 24;
		this.cbMeasureCNR.UseVisualStyleBackColor = true;
		this.cbMeasureCNR.CheckedChanged += new System.EventHandler(cbMeasureSNR_CheckedChanged);
		this.cbPoutDeltaMeasureConstraint.Enabled = false;
		this.cbPoutDeltaMeasureConstraint.FormattingEnabled = true;
		this.cbPoutDeltaMeasureConstraint.Items.AddRange(new object[2] { ">", "<" });
		this.cbPoutDeltaMeasureConstraint.Location = new System.Drawing.Point(481, 115);
		this.cbPoutDeltaMeasureConstraint.Name = "cbPoutDeltaMeasureConstraint";
		this.cbPoutDeltaMeasureConstraint.Size = new System.Drawing.Size(83, 21);
		this.cbPoutDeltaMeasureConstraint.TabIndex = 31;
		this.cbPoutDeltaMeasureConstraint.SelectedIndexChanged += new System.EventHandler(cbPoutDeltaMeasureConstraint_SelectedIndexChanged);
		this.tbPoutDeltaMeasureTarget.Location = new System.Drawing.Point(328, 115);
		this.tbPoutDeltaMeasureTarget.Name = "tbPoutDeltaMeasureTarget";
		this.tbPoutDeltaMeasureTarget.Size = new System.Drawing.Size(100, 20);
		this.tbPoutDeltaMeasureTarget.TabIndex = 30;
		this.tbPoutDeltaMeasureTarget.TextChanged += new System.EventHandler(tbPoutDeltaMeasureTarget_TextChanged);
		this.cbPoutDeltaMeasureType.AllowDrop = true;
		this.cbPoutDeltaMeasureType.FormattingEnabled = true;
		this.cbPoutDeltaMeasureType.Items.AddRange(new object[2] { "AMAM Based Power Delta Max", "ACLR Based Power Delta Max" });
		this.cbPoutDeltaMeasureType.Location = new System.Drawing.Point(93, 115);
		this.cbPoutDeltaMeasureType.Name = "cbPoutDeltaMeasureType";
		this.cbPoutDeltaMeasureType.Size = new System.Drawing.Size(193, 21);
		this.cbPoutDeltaMeasureType.TabIndex = 29;
		this.cbPoutDeltaMeasureType.TextChanged += new System.EventHandler(cbPoutDeltaMeasureType_TextChanged);
		this.cbMeasurePoutDelta.AutoSize = true;
		this.cbMeasurePoutDelta.Location = new System.Drawing.Point(31, 118);
		this.cbMeasurePoutDelta.Name = "cbMeasurePoutDelta";
		this.cbMeasurePoutDelta.Size = new System.Drawing.Size(15, 14);
		this.cbMeasurePoutDelta.TabIndex = 28;
		this.cbMeasurePoutDelta.UseVisualStyleBackColor = true;
		this.cbMeasurePoutDelta.CheckedChanged += new System.EventHandler(cbMeasurePoutDelta_CheckedChanged);
		base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f);
		base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
		base.Controls.Add(this.cbPoutDeltaMeasureConstraint);
		base.Controls.Add(this.tbPoutDeltaMeasureTarget);
		base.Controls.Add(this.cbPoutDeltaMeasureType);
		base.Controls.Add(this.cbMeasurePoutDelta);
		base.Controls.Add(this.cbCNRMeasureConstraint);
		base.Controls.Add(this.tbCNRMeasureTarget);
		base.Controls.Add(this.cbCNRMeasureType);
		base.Controls.Add(this.cbMeasureCNR);
		base.Controls.Add(this.cbCurrentMeasureConstraint);
		base.Controls.Add(this.tbCurrentMeasureTarget);
		base.Controls.Add(this.cbCurrentMeasureType);
		base.Controls.Add(this.cbMeasureCurrent);
		base.Controls.Add(this.cbAclrMeasureConstraint);
		base.Controls.Add(this.tbAclrMeasureTarget);
		base.Controls.Add(this.cbAclrMeasureType);
		base.Controls.Add(this.cbMeasureACLR);
		base.Controls.Add(this.cbPoutMeasureConstraint);
		base.Controls.Add(this.tbPoutMeasureTarget);
		base.Controls.Add(this.cbPoutMeasureType);
		base.Controls.Add(this.cbMeasurePout);
		base.Controls.Add(this.cbPinMeasureConstraint);
		base.Controls.Add(this.tbPinMeasureTarget);
		base.Controls.Add(this.cbPinMeasureType);
		base.Controls.Add(this.cbMeasurePin);
		base.Controls.Add(this.cbDelayMeasureConstraint);
		base.Controls.Add(this.label4);
		base.Controls.Add(this.label3);
		base.Controls.Add(this.tbDelayMeasureTarget);
		base.Controls.Add(this.label2);
		base.Controls.Add(this.cbDelayMeasureType);
		base.Controls.Add(this.label1);
		base.Controls.Add(this.cbMeasureDelay);
		base.Name = "MeasurementSelection";
		base.Size = new System.Drawing.Size(588, 188);
		base.ResumeLayout(false);
		base.PerformLayout();
	}
}
