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

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