Exemple #1
0
 /// <summary>
 /// invalidInputMessage(int, int) a function to show/display the warning after invalid input in console screen.
 ///
 /// parameters:
 ///     left: indicating the left posotion of the console window.
 ///     top: indicating the top posotion of the console window.
 /// </summary>
 private void invalidInputMessage(int left, int top)
 {
     Console.Clear();
     ChangeConsoleColors.to_error_ForegroundColor();
     Console.SetCursorPosition(left, top);
     Console.WriteLine("{0} is not a valid input!!!", input.KeyChar);
     ChangeConsoleColors.to_Console_Default_ForegroundColor();
 }