public PopulationDataEntry(String iName, OfficeType iType, EntityLeaderList iLeaderList) { Name = iName; EntityOffice lOffice = new EntityOffice(); lOffice.Type = iType; lOffice.OfficialsList = iLeaderList; Offices.Add(lOffice); }
protected EntityLeaderList ParseLeaders(String iValue) { EntityLeaderList lResult = new EntityLeaderList(); Int32 lPos3 = iValue.IndexOf(mGovernorStart) + mGovernorStart.Length; Int32 lPos4 = iValue.IndexOf(mViceGovernorStart) + mViceGovernorStart.Length; lResult.AddRange(ParseNames(iValue.Substring(lPos3, lPos4 - lPos3 - mViceGovernorStart.Length), EntityLeaderType.Governor)); lResult.AddRange(ParseNames(iValue.Substring(lPos4), EntityLeaderType.ViceGovernor)); return lResult; }