예제 #1
0
        private void btnAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            H_Frm_Practice_Modify frm = new H_Frm_Practice_Modify();

            frm.ShowDialog();
            LoadAllPracticeFromDB();
        }
예제 #2
0
 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);
     }
 }