public ProviderIntArray GetYearOffPopData(int year) { int index = year - FStartYear; if ((index < 0) || (index > (PopOffByYearList.Count - 1))) { throw new Exception(WS_Strings.Get(WS_Strings.wsInvalidPopIndex)); } return(PopOffByYearList[index]); }
public PopulationClass(string pathname, int StartYear) { string myerr = ""; if (!LoadAllPopData(pathname, ref myerr)) { throw new Exception(WS_Strings.Get(WS_Strings.wsPopDataLoadError) + myerr); } FStartYear = StartYear; }