Exemple #1
0
        public static int GetNumberI(string prompt)
        {
            TextInputForm tif = new TextInputForm(Title + " " + prompt + " (integer)", "OK");

            tif.ShowDialog();
            return(int.Parse(tif.output));
        }
Exemple #2
0
        public static string GetString(string prompt)
        {
            TextInputForm tif = new TextInputForm(Title + " " + prompt + " (string)", "OK");

            tif.ShowDialog();
            return(tif.output);
        }
Exemple #3
0
        public static float GetNumberF(string prompt)
        {
            TextInputForm tif = new TextInputForm(Title + " " + prompt + " (float)", "OK");

            tif.ShowDialog();
            return(float.Parse(tif.output));
        }
Exemple #4
0
        public static double GetNumber(string prompt)
        {
            TextInputForm tif = new TextInputForm(Title + " " + prompt + " (number)", "OK");

            tif.ShowDialog();
            return(double.Parse(tif.output));
        }