public static string Show(string title, string prompt, string input = null)
 {
     InputDlg dlg = new InputDlg();
     dlg.Title = title;
     dlg.lblPrompt.Content = prompt;
     if (input != null) {
         dlg.txtInput.Text = input;
         dlg.txtInput.SelectAll();
     }
     if (dlg.ShowDialog() == true) {
         return dlg.GetText();
     }
     return null;
 }
Exemple #2
0
        public static string Show(string title, string prompt, string input = null)
        {
            InputDlg dlg = new InputDlg();

            dlg.Title             = title;
            dlg.lblPrompt.Content = prompt;
            if (input != null)
            {
                dlg.txtInput.Text = input;
            }
            if (dlg.ShowDialog() == true)
            {
                return(dlg.GetText());
            }
            return(null);
        }