Example #1
0
 public void btn_Delete_File_Click(object sender, DirectEventArgs e)
 {
     try
     {
         foreach (var item in RowSelectionModel_TepTinDinhKem.SelectedRows)
         {
             new TepTinDinhKemControler().Delete(int.Parse("0" + item.RecordID));
         }
         btn_Download_File.Disabled = true;
         btn_Delete_File.Disabled   = true;
         GridPanel_TepTinDinhkem.Reload();
         RowSelectionModel_BangCap.ClearSelections();
     }
     catch (Exception ex)
     {
         Dialog.ShowError(ex.Message);
     }
 }
Example #2
0
 public void btn_Delete_QuaTrinhHocTap_Click(object sender, DirectEventArgs e)
 {
     try
     {
         foreach (var item in RowSelectionModel_BangCap.SelectedRows)
         {
             new BangCapUngVienController().Delete(int.Parse("0" + item.RecordID));
         }
         btn_Edit_QuaTrinhHocTap.Disabled   = true;
         btn_Delete_QuaTrinhHocTap.Disabled = true;
         GridPanel_BangCap.Reload();
         RowSelectionModel_BangCap.ClearSelections();
     }
     catch (Exception ex)
     {
         Dialog.ShowError(ex.Message);
     }
 }