Пример #1
0
 public static Boolean Input(String title, String description, ref String value)
 {
     InputQuery dlg = new InputQuery();
     dlg.Text = title;
     dlg.labelDescription.Text = description;
     dlg.TextBoxInput.Text = value;
     if (dlg.ShowDialog() == DialogResult.OK)
     {
         value = dlg.TextBoxInput.Text;
         return true;
     }
     return false;
 }
Пример #2
0
        public static Boolean Input(String title, String description, ref String value)
        {
            InputQuery dlg = new InputQuery();

            dlg.Text = title;
            dlg.labelDescription.Text = description;
            dlg.TextBoxInput.Text     = value;
            if (dlg.ShowDialog() == DialogResult.OK)
            {
                value = dlg.TextBoxInput.Text;
                return(true);
            }
            return(false);
        }
Пример #3
0
 public static Boolean MultiInput(String title, String description, ref String value)
 {
     InputQuery dlg = new InputQuery();
     dlg.Text = title;
     dlg.labelDescription.Text = description;
     dlg.TextBoxInput.Text = value;
     dlg.TextBoxInput.Multiline = true;
     dlg.MaximumSize = new System.Drawing.Size(2000, 420);
     dlg.Size = new System.Drawing.Size(dlg.Size.Width, 200);
     dlg.TextBoxInput.AcceptsReturn = true;
     if (dlg.ShowDialog() == DialogResult.OK)
     {
         value = dlg.TextBoxInput.Text;
         return true;
     }
     return false;
 }
Пример #4
0
        public static Boolean MultiInput(String title, String description, ref String value)
        {
            InputQuery dlg = new InputQuery();

            dlg.Text = title;
            dlg.labelDescription.Text  = description;
            dlg.TextBoxInput.Text      = value;
            dlg.TextBoxInput.Multiline = true;
            dlg.MaximumSize            = new System.Drawing.Size(2000, 420);
            dlg.Size = new System.Drawing.Size(dlg.Size.Width, 200);
            dlg.TextBoxInput.AcceptsReturn = true;
            if (dlg.ShowDialog() == DialogResult.OK)
            {
                value = dlg.TextBoxInput.Text;
                return(true);
            }
            return(false);
        }