Exemple #1
0
        public void UserCommands(string args)
        {
            string[] command = args.Split(' ');

            if (command.Length == 1)
            {
                DisplayUserInformation(command[0]);
            }
            else if (command.Length == 2)
            {
                UserBuysProduct(command[0], command[1]);
            }
            else
            {
                ui.DisplayTooManyArguementsError(command.Length.ToString());
            }
        }