public void AddSubRegion(Region subRegion) { if (!SubRegions.Contains(subRegion)) { SubRegions.Add(subRegion); } }
public override void AddReference(ModelCode referenceId, long globalId) { switch (referenceId) { case ModelCode.SUBREGION_REGION: SubRegions.Add(globalId); break; default: base.AddReference(referenceId, globalId); break; } }