示例#1
0
 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;
     }
 }
示例#2
0
 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);
     }
 }