Exemple #1
0
        private void btnNewOrder_Click(object sender, EventArgs e)
        {
            // invoke EditOrders form using passive view for a new order.

            IOrder             order     = new Order();
            EditOrderForm      screen    = new EditOrderForm();
            EditOrderPresenter presenter = new EditOrderPresenter(screen, order);

            screen.ShowDialog();
        }
Exemple #2
0
        private void InvokeUnsubmittedOrderForm(IOrder order)
        {
            // Invoke unsubmitted order maintenance form.
            // Uses passive-view with dependancy injection

            EditOrderForm      screen    = new EditOrderForm();
            EditOrderPresenter presenter = new EditOrderPresenter(screen, order);

            screen.ShowDialog();
        }