示例#1
0
        //Create Customer//
        private void BtnCreatCustomer_Click(object sender, EventArgs e)
        {
            CustomerCreatedForm customerCreatedForm = new CustomerCreatedForm();

            customerCreatedForm.AddCustomer += CustomerCreatedForm_AddCustomer;
            customerCreatedForm.ShowDialog();
        }
示例#2
0
        //Customer Update Database//
        private void BtnUpdate_Click(object sender, EventArgs e)
        {
            CustomerCreatedForm customerUpdate = new CustomerCreatedForm(true, _customer);

            customerUpdate.AddCustomer += CustomerCreatedForm_AddCustomer;
            customerUpdate.ShowDialog();
        }
        //Customer Creat Event//
        private void BtnAdd_Click(object sender, EventArgs e)
        {
            CustomerCreatedForm customerCreated = new CustomerCreatedForm();

            customerCreated.AddCustomer += CustomerCreated_AddCustomer;
            customerCreated.ShowDialog();
        }