public static string GetInput( string description = "Input : ", string deftext = "Type your text here...", string title = "Input Form", int width = 450, int height = 130) { using (InputForm inf = new InputForm(description, deftext, title, width, height)) { if (inf.ShowDialog() == DialogResult.OK) return inf.Text; return deftext; } }
public static string GetInput( string description = "Input : ", string deftext = "Type your text here...", string title = "Input Form", int width = 450, int height = 130) { using (InputForm inf = new InputForm(description, deftext, title, width, height)) { if (inf.ShowDialog() == DialogResult.OK) { return(inf.Text); } return(deftext); } }