public DataTable Invoke(ICommand2 command) { if (command.CanExecute()) { return(command.Execute()); } else { return(new DataTable()); } }
public void RegisterCommand(ICommand2 command) { _commands.Add(command); }
public void StoreAndExecute(ICommand2 command2) { _commands2.Add(command2); command2.Execute(); }