//METHOD UPDATE STAFF void UpdateStaff(object sender, EventArgs e) { #region 1. Get new staff NhanVienSuaPresentation wpf = (NhanVienSuaPresentation)sender; NhanVienPublic _staff = wpf._staff; _staff.Anh_NV = CoppyAnhNV(_staff.Anh_NV, _staff.MaNV_NV); #endregion #region 2. Update to database if (NhanVienBusiness.UpdateStaff(_staff)) { LoadDataToDataGrid(); EventHandler _eh = _CapNhatHienThi; if (_eh != null) { _eh(this, e); } } else { MessageBox.Show("Sửa thông tin nhân viên thất bại"); } #endregion }