private void RefreshFields(EmployeeEmployeeTerritory tmp) { _EmployeeTerritoryInfoExtension.Refresh(this); _MyEmployee = null; _MyTerritory = null; OnChange(); // raise an event }
public static void Refresh(Employee myEmployee, EmployeeEmployeeTerritory tmp) { EmployeeTerritoryInfo tmpInfo = GetExistingByPrimaryKey(myEmployee.EmployeeID, tmp.TerritoryID); if (tmpInfo == null) { return; } tmpInfo.RefreshFields(tmp); }