public static int DoModal(string strTitle, string strCurrent, StringCollection strc)
 {
     PickListForm frm = new PickListForm(strTitle, strCurrent, strc);
     DialogResult res = frm.ShowDialog();
     if (res == DialogResult.Cancel)
         return -1;
     return frm.GetIndex();
 }
Example #2
0
        static public int DoModal(string strTitle, string strCurrent, StringCollection strc)
        {
            PickListForm frm = new PickListForm(strTitle, strCurrent, strc);
            DialogResult res = frm.ShowDialog();

            if (res == DialogResult.Cancel)
            {
                return(-1);
            }
            return(frm.GetIndex());
        }