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(); }
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(); } }