コード例 #1
0
ファイル: InputForm.cs プロジェクト: nocmnt/UVA-Arena
 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);
     }
 }