private void simpleButton3_Click_1(object sender, EventArgs e) { addStaff add = new addStaff(); if (add.IsDisposed == false) { add.ShowDialog(); dgvStaff.DataSource = null; loadStaff(); } }
private void bbiNew_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { addStaff add = new addStaff(); add.ShowDialog(); if (add.IsDisposed == false) { setnull(); dgvStaffinfo.DataSource = null; load(); } }