/// <summary> /// Displays dialog box that prompts user for input. /// </summary> public string Prompt() { AbbreviationPrompt dlg = new AbbreviationPrompt(); if (DialogResult.OK != dlg.ShowDialog() || string.IsNullOrWhiteSpace(dlg.Abbreviation)) { return(null); } return(dlg.Abbreviation); }
/// <summary> /// Displays dialog box that prompts user for input. /// </summary> public string Prompt() { AbbreviationPrompt dlg = new AbbreviationPrompt(); if (DialogResult.OK != dlg.ShowDialog() || string.IsNullOrWhiteSpace(dlg.Abbreviation)) return null; return dlg.Abbreviation; }