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;
        }
Exemple #2
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;
        }
Exemple #3
0
 private void btnNew_Click(object sender, EventArgs e)
 {
     _presenter.btnNew_Click();
 }