public static DialogResult Show(String title, out String inputValue) { MetroInputForm inputBox = null; DialogResult results = DialogResult.None; using (inputBox = new MetroInputForm(title)) { results = inputBox.ShowDialog(); inputValue = inputBox.inputBox.Text; } return(results); }
public static DialogResult Show(String title, out String inputValue, MetroMessageTheme theme) { MetroInputForm inputBox = null; DialogResult results = DialogResult.None; using (inputBox = new MetroInputForm(title)) { switch (theme) { case MetroMessageTheme.Dark: inputBox.SetThemeDark(); break; case MetroMessageTheme.Light: inputBox.SetThemeLight(); break; } results = inputBox.ShowDialog(); inputValue = inputBox.inputBox.Text; } return(results); }