示例#1
0
 internal AlignmentMultipleSegments(C3dDb.AlignmentMultipleSegments mseg)
     : base(mseg)
 {
     for (int i = 0; i < mseg.SubEntityCount; i++)
     {
         C3dDb.AlignmentSubEntity curve = mseg[i];
         if (curve is C3dDb.AlignmentSubEntityLine line)
         {
             SubEntities.Add(new AlignmentLine(line));
         }
         else if (curve is C3dDb.AlignmentSubEntityArc arc)
         {
             SubEntities.Add(new AlignmentArc(arc));
         }
     }
 }
示例#2
0
        public PopulationDataEntry(PopulationDataEntry value)
        {
            Type       = value.Type;
            Total      = value.Total;
            Male       = value.Male;
            Female     = value.Female;
            Households = value.Households;
            English    = value.English;
            Geocode    = value.Geocode;
            Obsolete   = value.Obsolete;
            Name       = value.Name;
            Comment    = value.Comment;

            foreach (Int32 lGeocode in value.mNewGeocode)
            {
                mNewGeocode.Add(lGeocode);
            }
            foreach (Int32 lGeocode in value.mGeocodeParent)
            {
                mGeocodeParent.Add(lGeocode);
            }
            foreach (PopulationDataEntry lSubEntity in value.SubEntities)
            {
                if (lSubEntity != null)
                {
                    SubEntities.Add((PopulationDataEntry)lSubEntity.Clone());
                }
            }
            foreach (EntityOffice lOffice in value.Offices)
            {
                Offices.Add((EntityOffice)lOffice.Clone());
            }
            foreach (String lOldName in value.OldNames)
            {
                mOldNames.Add(lOldName);
            }
            foreach (ConstituencyEntry lEntry in value.ConstituencyList)
            {
                ConstituencyList.Add((ConstituencyEntry)lEntry.Clone());
            }
        }