Exemplo n.º 1
0
        private void BtnOrder_Click(object sender, EventArgs e)
        {
            ProductCheck();
            ICommand order = new OrderCommand(product);

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