Пример #1
0
        //END PRODUCTS TAB

        //START CUSTOMERS TAB

        private void AddCustomer_Click(object sender, EventArgs e)
        {
            CustomerDetails cd = new CustomerDetails(this);

            if (cd.ShowDialog() == DialogResult.OK)
            {
                Account ac = new Account(cd.Cust_ID, cd.Cust_Name, cd.Address, cd.State, cd.Date, cd.Type);
                customers.Add(ac);
                loadcustomerdata();
                CustomerView.Update();
                CustomerView.Refresh();
            }
        }