예제 #1
0
 public static string GetInputText(string text, bool onlyNumeric = false)
 {
     Console.Write(text);
     if (onlyNumeric)
     {
         return(StringMethods.OnlyNumerics(Console.ReadLine()));
     }
     return(Console.ReadLine());
 }
예제 #2
0
 public static string GetInputText(string text, int x, int y, bool onlyNumeric = false)
 {
     Console.SetCursorPosition(x, y);
     Console.Write(text);
     if (onlyNumeric)
     {
         return(StringMethods.OnlyNumerics(Console.ReadLine()));
     }
     return(Console.ReadLine());
 }