public PopulationDataEntry(String iName, OfficeType iType, EntityLeaderList iLeaderList) { Name = iName; EntityOffice lOffice = new EntityOffice(); lOffice.Type = iType; lOffice.OfficialsList = iLeaderList; Offices.Add(lOffice); }
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()); } }