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