Esempio n. 1
0
 /// <summary>
 /// Loads <see cref="E10_City"/> items on the E09_CityObjects collection.
 /// </summary>
 /// <param name="collection">The grand parent <see cref="E07_RegionColl"/> collection.</param>
 internal void LoadItems(E07_RegionColl collection)
 {
     foreach (var item in this)
     {
         var obj  = collection.FindE08_RegionByParentProperties(item.parent_Region_ID);
         var rlce = obj.E09_CityObjects.RaiseListChangedEvents;
         obj.E09_CityObjects.RaiseListChangedEvents = false;
         obj.E09_CityObjects.Add(item);
         obj.E09_CityObjects.RaiseListChangedEvents = rlce;
     }
 }