private void simpleButton6_Click_1(object sender, EventArgs e) { addCustomerinfo add = new addCustomerinfo(); if (add.IsDisposed == false) { add.ShowDialog(); dgvCustomer.DataSource = null; loadCustomer(); } }
private void bbiNew_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { addCustomerinfo add = new addCustomerinfo(); add.ShowDialog(); if (add.IsDisposed == false) { setnull(); dgvCustomerinfo.DataSource = null; load(); } }