Пример #1
0
        private void btnShowInputDialog_Click(object sender, EventArgs e)
        {
            var dialog = InputBoxDialog.Show("Prompt", "Title", "France", Enumerable.Empty <string>(), predefinedValues: new[] { "France", "Germany", "Danemark", "Finland" });

            InputBoxDialog.Show("Prompt", "Title", "France");

            InputBoxDialog.Show("Prompt", "Title");

            InputBoxDialog.Show("Prompt", "Title", predefinedValues: new[] { "France", "Germany", "Danemark", "Finland" });

            InputBoxDialog.Show("Prompt", "Title", forbiddenValues: new[] { "France", "Germany", "Danemark", "Finland" });
        }
Пример #2
0
 public string AskForInput(string caption, string text, string defaultValue = null, IEnumerable <string> forbiddenValues = null, IEnumerable <string> predefinedValues = null)
 {
     return(InputBoxDialog.Show(caption, text, defaultValue, forbiddenValues, predefinedValues));
 }