private void btnAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { H_Frm_Practice_Modify frm = new H_Frm_Practice_Modify(); frm.ShowDialog(); LoadAllPracticeFromDB(); }
private void btnEdit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (drPractice != null) { H_Frm_Practice_Modify frm = new H_Frm_Practice_Modify(true, drPractice); frm.ShowDialog(); LoadAllPracticeFromDB(); } else { MessageBox.Show("Bạn chưa chọn môn tập.", "Thông báo!", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }