Beispiel #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);
 }
Beispiel #2
0
 public void OnButtonPressed()
 {
     _command?.Execute();
 }
 public void TaKeOrder() => _command.Execute();
Beispiel #4
0
 public void StoreAndExecute(ICommand command)
 {
     _commands.Add(command);
     command.Execute();
 }
Beispiel #5
0
 public void Click()
 {
     command.Execute();
 }
Beispiel #6
0
 public void PressButton()
 {
     command.Execute();
 }
Beispiel #7
0
 private void button2_Click(object sender, EventArgs e)
 {
     cmdSetLightForCinema.Execute();
     LastCommand = cmdSetLightForCinema;
 }
Beispiel #8
0
 private void button1_Click(object sender, EventArgs e)
 {
     cmdTurnLightOnInHall.Execute();
     LastCommand = cmdTurnLightOnInHall;
 }
Beispiel #9
0
 public void Submit(ICommand command)
 {
     command.Execute();
 }