Beispiel #1
0
        private void cmdAdd_Click(object sender, EventArgs e)
        {
            AddCustomer fAddCustomer = new AddCustomer();     //Initialized AddCustomer form

            if (fAddCustomer.ShowDialog() == DialogResult.OK) // show AddCustomer form and if success
            {
                //get newly add Customer form Customer form and add to list
                customers.Add(fAddCustomer.GetNewCustomer());
                CustomerToListViewItem(lstCustomers, fAddCustomer.GetNewCustomer());
            }
        }