Esempio n. 1
0
        private void btnCustomers_Click(object sender, EventArgs e)
        {
            CustomersForm     screen    = new CustomersForm();
            CustomerPresenter presenter = new CustomerPresenter(screen);

            screen.ShowDialog();
        }
Esempio n. 2
0
        private void btnCustomers_Click(object sender, EventArgs e)
        {
            // Invoke Customer maintenance form using passive view

            CustomersForm     screen    = new CustomersForm();
            CustomerPresenter presenter = new CustomerPresenter(screen);

            screen.ShowDialog();
        }
Esempio n. 3
0
        public void btnNewCustomer_Click()
        {
            CustomersForm     screen    = new CustomersForm();
            CustomerPresenter presenter = new CustomerPresenter(screen);

            // Invoke "New Customer" so user can immediately start typing new customer details
            presenter.btnNew_Click();

            screen.ShowDialog();

            _screen.CustomerId = screen.CustomerId;
        }
Esempio n. 4
0
        public void btnNewCustomer_Click()
        {
            CustomersForm     screen    = new CustomersForm();
            CustomerPresenter presenter = new CustomerPresenter(screen);

            // Invoke "New Customer" so user can immediately start typing new customer details
            presenter.btnNew_Click();

            screen.ShowDialog();

            // Check the customer id is not new as this would not be a valid custoemr id
            _screen.CustomerId = (screen.CustomerId == "new") ? "" : screen.CustomerId;
        }
Esempio n. 5
0
 public void Register(CustomerPresenter presenter)
 {
     _presenter = presenter;
 }