Example #1
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     using (Form form = new frmCustomerDetail())
     {
         form.ShowDialog(this);
         RefreshList();
     }
 }
Example #2
0
        private void gridCustomers_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            Customer cust = gridCustomers.SelectedRows[0].DataBoundItem as Customer;

            using (Form form = new frmCustomerDetail(cust))
            {
                form.ShowDialog();
                RefreshList();
            }
        }