public object Execute(Command.ICommand command) { var removeReference = (RemoveReference)command; return(db.RemoveReference(removeReference.GoodId, removeReference.CategoryId)); }
public void OffButtonWasPressed(int slot) { _offCommands[slot].Execute(); _undoCommand = _onCommands[slot]; }
public void EnviarComandoSimples(ICommand command) { this.comandoSimples = command; }
public void SetCommand(int slot, ICommand onCommand, ICommand offCommand) { _onCommands[slot] = onCommand; _offCommands[slot] = offCommand; }
public void EnviarComandoComplexo(ICommand command) { this.comandoComplexo = command; }