public static int GetNumberI(string prompt) { TextInputForm tif = new TextInputForm(Title + " " + prompt + " (integer)", "OK"); tif.ShowDialog(); return(int.Parse(tif.output)); }
public static string GetString(string prompt) { TextInputForm tif = new TextInputForm(Title + " " + prompt + " (string)", "OK"); tif.ShowDialog(); return(tif.output); }
public static float GetNumberF(string prompt) { TextInputForm tif = new TextInputForm(Title + " " + prompt + " (float)", "OK"); tif.ShowDialog(); return(float.Parse(tif.output)); }
public static double GetNumber(string prompt) { TextInputForm tif = new TextInputForm(Title + " " + prompt + " (number)", "OK"); tif.ShowDialog(); return(double.Parse(tif.output)); }