Beispiel #1
0
        private void InvokeSubmittedOrderForm(IOrder order)
        {
            // Invoke unsubmitted order maintenance form.
            // Uses passive-view with dependancy injection

            UpdateOrderForm      screen    = new UpdateOrderForm();
            UpdateOrderPresenter presenter = new UpdateOrderPresenter(screen, order);

            screen.ShowDialog();
        }
Beispiel #2
0
 public void getOrderToUpdate()
 {
     _order = new Order(_screen.OrderId);
     if (_order.Status == OrderStatus.Unsubmitted)
     {
     }
     else
     {
         UpdateOrderForm      screen    = new UpdateOrderForm();
         UpdateOrderPresenter presenter = new UpdateOrderPresenter(screen, _order);
         screen.ShowDialog();
         _screen.Close();
     }
 }