Esempio n. 1
0
        public string PerformDoSomeCommand(string command, ref bool exit, Transfer transfer)
        {
            commandBehavior = commandDict[command];
            if (commandBehavior is Quit)
            {
                exit = true;
            }

            return(commandBehavior.DoCommand(transfer));
        }
Esempio n. 2
0
        public List <Song> PerformDoSomeCommand(List <Song> songs, TransferData transferData, Transfer transfer)
        {
            commandBehavior = commandDict[transferData.Command.Name];

            return(commandBehavior.DoCommand(songs, transferData, transfer));
        }