public string PerformDoSomeCommand(string command, ref bool exit, Transfer transfer) { commandBehavior = commandDict[command]; if (commandBehavior is Quit) { exit = true; } return(commandBehavior.DoCommand(transfer)); }
public List <Song> PerformDoSomeCommand(List <Song> songs, TransferData transferData, Transfer transfer) { commandBehavior = commandDict[transferData.Command.Name]; return(commandBehavior.DoCommand(songs, transferData, transfer)); }