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();
 }
Esempio n. 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());
        }