Example #1
0
        public static string Show(string message, int maxLength)
        {
            using (var box = new TFiveInputBox {
                lblMessage = { Text = message }, txtInput = { MaxLength = maxLength }
            })
            {
                box.ShowDialog();

                return(box._txtInput);
            }
        }
Example #2
0
        /// <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);
            }
        }
Example #3
0
        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);
            }
        }