Exemplo n.º 1
0
 /// <summary>
 /// Execute geting command and item.
 /// </summary>
 /// <param name="command"> Received a command from the client. </param>
 /// <param name="item"> The element over which the command must be executed. </param>
 public void ExecuteCommand(ICommand command, MenuItem item)
 {
     command.Execute(menuItems, item);
 }
Exemplo n.º 2
0
 public void OnButtonPressed()
 {
     _command?.Execute();
 }
 public void TaKeOrder() => _command.Execute();
Exemplo n.º 4
0
 public void StoreAndExecute(ICommand command)
 {
     _commands.Add(command);
     command.Execute();
 }
Exemplo n.º 5
0
 public void Click()
 {
     command.Execute();
 }
Exemplo n.º 6
0
 public void PressButton()
 {
     command.Execute();
 }
Exemplo n.º 7
0
 private void button2_Click(object sender, EventArgs e)
 {
     cmdSetLightForCinema.Execute();
     LastCommand = cmdSetLightForCinema;
 }
Exemplo n.º 8
0
 private void button1_Click(object sender, EventArgs e)
 {
     cmdTurnLightOnInHall.Execute();
     LastCommand = cmdTurnLightOnInHall;
 }
Exemplo n.º 9
0
 public void Submit(ICommand command)
 {
     command.Execute();
 }