public static Switch DoModal(string strTitle, string strCurrent, StringCollection strc)
 {
     SwitchesForm frm = new SwitchesForm(strTitle, strCurrent, strc);
     DialogResult res = frm.ShowDialog();
     if (res == DialogResult.Cancel)
         return null;
     return frm.GetSelectedSwitch();
 }
Exemple #2
0
        static public Switch DoModal(string strTitle, string strCurrent, StringCollection strc)
        {
            SwitchesForm frm = new SwitchesForm(strTitle, strCurrent, strc);
            DialogResult res = frm.ShowDialog();

            if (res == DialogResult.Cancel)
            {
                return(null);
            }
            return(frm.GetSelectedSwitch());
        }