public static string Show(string message, int maxLength) { using (var box = new TFiveInputBox { lblMessage = { Text = message }, txtInput = { MaxLength = maxLength } }) { box.ShowDialog(); return(box._txtInput); } }
/// <summary> /// Example: string input = TFiveInputBox.Show("Please enter your name"); /// </summary> /// <param name="message"> Title</param> /// <returns></returns> public static string Show(string message) { using (var box = new TFiveInputBox { lblMessage = { Text = message } }) { box.ShowDialog(); return(box._txtInput); } }
public string Show(string message, string OK, string Cancel) { btnOK = OK; btnCancel = Cancel; using (var box = new TFiveInputBox { lblMessage = { Text = message } }) { box.ShowDialog(); return(box._txtInput); } }