Esempio n. 1
0
        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]);
        }
Esempio n. 2
0
        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;
        }