public object Execute(Command.ICommand command)
        {
            var removeReference = (RemoveReference)command;

            return(db.RemoveReference(removeReference.GoodId, removeReference.CategoryId));
        }
예제 #2
0
 public void OffButtonWasPressed(int slot)
 {
     _offCommands[slot].Execute();
     _undoCommand = _onCommands[slot];
 }
예제 #3
0
 public void EnviarComandoSimples(ICommand command)
 {
     this.comandoSimples = command;
 }
예제 #4
0
 public void SetCommand(int slot, ICommand onCommand, ICommand offCommand)
 {
     _onCommands[slot]  = onCommand;
     _offCommands[slot] = offCommand;
 }
예제 #5
0
 public void EnviarComandoComplexo(ICommand command)
 {
     this.comandoComplexo = command;
 }