Example #1
0
        public static bool RequestInput(IWin32Window owner, string titel, string label, ref string value)
        {
            var _form   = new InputTextForm();
            var _result = false;

            _form.Text          = titel;
            _form.label1.Text   = label;
            _form.textBox1.Text = value;

            if (_form.ShowDialog(owner) == DialogResult.Yes)
            {
                _result = true;
                value   = _form.textBox1.Text;
            }

            _form.Dispose();
            _form = null;

            return(_result);
        }
Example #2
0
 public static bool RequestInput(IWin32Window owner, string label, ref string value)
 {
     return(InputTextForm.RequestInput(owner, string.Empty, label, ref value));
 }