Exemple #1
0
        private void buttonNew_Click(object sender, EventArgs e)
        {
            NewOrder newOrder          = new NewOrder();
            var      newOrderPresenter = new NewOrderPresenter(newOrder, NewVisitBillingNumber);

            newOrder.ShowDialog();
        }
Exemple #2
0
        private void buttonAddOrder_Click(object sender, EventArgs e)
        {
            var          newOrder          = new NewOrder();
            VisitForGrid focusedVisit      = (VisitForGrid)gridViewVisits.GetFocusedRow();
            var          newOrderPresenter = new NewOrderPresenter(newOrder, focusedVisit.BillingNumber);

            newOrder.ShowDialog();
        }
Exemple #3
0
        public void ShowNewOrder()
        {
            var view      = new NewOrder(this);
            var model     = new NewOrderModel(session);
            var presenter = new NewOrderPresenter(model, view);

            ShowControl(view);
        }
Exemple #4
0
        public NewOrderView()
        {
            InitializeComponent();

            presenter = new NewOrderPresenter(this);
        }