private void BtnOrder_Click(object sender, EventArgs e)
        {
            ProductCheck();
            ICommand order = new OrderCommand(product);

            controller.InsertCommand(order);
            lbOrder.Text = "You ordered: " + order.Execute();
        }
Beispiel #2
0
 public void ExcuteCommand(OrderCommand command, MenuItem item)
 {
     command.Execute(CurrentItems, item);
 }
Beispiel #3
0
 public void ExecuteCommand()
 => _command.Execute(_order, _product);