Ejemplo n.º 1
0
 /// <summary>
 /// Loads <see cref="E06_Country"/> items on the E05_CountryObjects collection.
 /// </summary>
 /// <param name="collection">The grand parent <see cref="E03_SubContinentColl"/> collection.</param>
 internal void LoadItems(E03_SubContinentColl collection)
 {
     foreach (var item in this)
     {
         var obj  = collection.FindE04_SubContinentByParentProperties(item.parent_SubContinent_ID);
         var rlce = obj.E05_CountryObjects.RaiseListChangedEvents;
         obj.E05_CountryObjects.RaiseListChangedEvents = false;
         obj.E05_CountryObjects.Add(item);
         obj.E05_CountryObjects.RaiseListChangedEvents = rlce;
     }
 }