private void RefreshFields(TerritoryEmployeeTerritory tmp)
 {
     _EmployeeTerritoryInfoExtension.Refresh(this);
     _MyEmployee  = null;
     _MyTerritory = null;
     OnChange();            // raise an event
 }
        public static void Refresh(Territory myTerritory, TerritoryEmployeeTerritory tmp)
        {
            EmployeeTerritoryInfo tmpInfo = GetExistingByPrimaryKey(tmp.EmployeeID, myTerritory.TerritoryID);

            if (tmpInfo == null)
            {
                return;
            }
            tmpInfo.RefreshFields(tmp);
        }