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