private void okButton_Click(object sender, EventArgs e)
        {
            if (slaveSet.RecNo == 0)
            {
                Result = new TestPatternRow(0, "None", "None");
            }
            else
            {
                string smu = GetActiveSmus(slaveSet.RecNo);
                Result = new TestPatternRow(slaveSet.RecNo, slaveSet.Name, smu);
            }

            Close();
        }
 private void cancelButton_Click(object sender, EventArgs e)
 {
     Result = null;
     Close();
 }