/// <summary> /// Every input received by the user will run into a switch statement to require the wanted action. /// </summary> /// <param name="input">The input received from the user.</param> private void ParseKeyCommand(ConsoleKeyInfo input) { Console.Clear(); switch (input.Key) { case ConsoleKey.A: Console.WriteLine("--- Show Teams ---"); _presenter.AllTeams(); break; case ConsoleKey.B: Console.WriteLine("--- New Team ---"); _presenter.CreateNewTeam(); break; case ConsoleKey.C: Console.WriteLine("--- Edit Team ---"); _presenter.EditTeam(); break; case ConsoleKey.D: Console.WriteLine("--- Delete Team ---"); _presenter.DeleteTeam(); break; case ConsoleKey.E: Console.WriteLine("--- Show Players ---"); _presenter.AllPlayers(); break; case ConsoleKey.F: Console.WriteLine("--- New Player ---"); _presenter.CreateNewPlayer(); break; case ConsoleKey.G: Console.WriteLine("--- Edit Player ---"); _presenter.EditPlayer(); break; case ConsoleKey.H: Console.WriteLine("--- Delete Player ---"); _presenter.DeletePlayer(); break; case ConsoleKey.I: Console.WriteLine("--- Show Unsigned Players ---"); _presenter.ShowUnsignedPlayers(); break; case ConsoleKey.J: Console.WriteLine("--- Show Team Players ---"); _presenter.ShowTeamPlayers(); break; case ConsoleKey.X: Console.WriteLine("--- Close ---"); _presenter.Close(); break; default: Console.WriteLine("Invalid Input! Please try again..."); break; } Console.ReadKey(); }