private void addCustomerButton_Click(object sender, EventArgs e)
 {
     using (var form = new AddCustomerForm())
     {
         form.ShowDialog();
     }
 }
Example #2
0
        private void bt_add_customer_Click(object sender, EventArgs e)
        {
            AddCustomerForm acf = new AddCustomerForm();

            if (acf.ShowDialog() == DialogResult.OK)
            {
                dtshowcustomer_find.DataSource = CustomerController.loadAddedCustomer();
                keycustomerText.Focus();
            }
        }
Example #3
0
        private void button2_Click(object sender, EventArgs e)
        {
            AddCustomerForm acf = new AddCustomerForm();

            if (acf.ShowDialog() == DialogResult.OK)
            {
                selected_customer = CustomerController.addedCustomer;
                showInfor();
            }
        }
Example #4
0
 private void BtnAddCustomer_Click(object sender, EventArgs e)
 {
     if (!CustomerAdded)
     {
         _addCustomerForm = new AddCustomerForm(this);
         _addCustomerForm.ShowDialog();
     }
     else
     {
         MessageBox.Show("Cliente já foi adicionado.");
     }
 }