예제 #1
0
 public void AddSubRegion(Region subRegion)
 {
     if (!SubRegions.Contains(subRegion))
     {
         SubRegions.Add(subRegion);
     }
 }
예제 #2
0
        public override void RemoveReference(ModelCode referenceId, long globalId)
        {
            switch (referenceId)
            {
            case ModelCode.SUBREGION_REGION:

                if (SubRegions.Contains(globalId))
                {
                    SubRegions.Remove(globalId);
                }
                else
                {
                    CommonTrace.WriteTrace(CommonTrace.TraceWarning, "Entity (GID = 0x{0:x16}) doesn't contain reference 0x{1:x16}.", this.GlobalId, globalId);
                }

                break;

            default:
                base.RemoveReference(referenceId, globalId);
                break;
            }
        }