public static string ShowComboBox(string lbl, string[] choices, string title = Program.Name) { var textBoxDialog = new TxtBxDialog(lbl, choices, title); if (textBoxDialog.ShowDialog() == DialogResult.OK) { return(textBoxDialog.Result); } return(null); }
public static string ShowTextBox(string lbl, string title = Program.Name, string text = null, bool allowEmpty = false) { var textBoxDialog = new TxtBxDialog(lbl, title, text, allowEmpty); if (textBoxDialog.ShowDialog() == DialogResult.OK) { text = textBoxDialog.Result; } return(text); }