コード例 #1
0
 private void btnDelete_Click(object sender, EventArgs e)
 {
     if (_FacultyModelNow != null)
     {
         if (_Faculty.deleteCurrentFaculty(_FacultyModelNow))
         {
             _lstLoadListFaculty();
             DevExpress.XtraEditors.XtraMessageBox.Show("Xóa Thành Công!", "Thông Báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
             if (_lstFaculty.Count == 0)
             {
                 _FacultyModelNow = null;
                 _IStatusForm     = 0;
                 _setStatusForm();
             }
         }
         else
         {
             DevExpress.XtraEditors.XtraMessageBox.Show("Xóa Thất Bại!", "Thông Báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
         }
     }
 }