Пример #1
0
 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();
 }
Пример #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());
        }