예제 #1
0
 public static string showInputDlg(string infomessage, IWin32Window owner)
 {
     inputForm dlg = new inputForm(infomessage);
     dlg.ShowDialog(owner);
     if (dlg.accepted)
     {
         return dlg.message;
     }
     else
     {
         return null;
     }
 }
예제 #2
0
        public static string showInputDlg(string infomessage, IWin32Window owner)
        {
            inputForm dlg = new inputForm(infomessage);

            dlg.ShowDialog(owner);
            if (dlg.accepted)
            {
                return(dlg.message);
            }
            else
            {
                return(null);
            }
        }