Beispiel #1
0
        private void DoWhatTheUserSaid(int userInput)
        {
            UserCommandOptions.IUserCommandOption userCommandOption = null;
            switch (userInput)
            {
            case (int)UserOptions.ShowData:
                userCommandOption = new UserCommandOptions.DisplayDataboardOption();
                break;

            case (int)UserOptions.DeleteUser:
                userCommandOption = new UserCommandOptions.DeleteUserOption();
                break;

            case (int)UserOptions.IncreasePensionFunds:
                userCommandOption = new UserCommandOptions.IncreasePensionFundsOption();
                break;

            case (int)UserOptions.UpdateName:
                userCommandOption = new UserCommandOptions.UpdateEmployeeNameOption();
                break;

            case (int)UserOptions.Search:
                userCommandOption = new UserCommandOptions.SearchUserCommand();
                break;
            }
            userCommandOption?.Run();
        }
Beispiel #2
0
        protected void DisplayData()
        {
            var displayDataBoardOption = new DisplayDataboardOption();

            displayDataBoardOption.Run();
        }