private static Dictionary <string, SubjectNameCache> ListCompanies()
        {
            Dictionary <string, SubjectNameCache> companies = new Dictionary <string, SubjectNameCache>();

            foreach (var kindexRecord in KIndex.YieldExistingKindexes())
            {
                companies.Add(kindexRecord.Ico, new SubjectNameCache(kindexRecord.Jmeno, kindexRecord.Ico));
            }

            return(companies);
        }
        public void PopulateWithAnnualData(int year)
        {
            if (string.IsNullOrWhiteSpace(Ico))
            {
                throw new Exception("Ico is missing");
            }

            year = Consts.FixKindexYear(year);
            var kindex = KIndex.Get(Ico);

            if (kindex != null)
            {
                AnnualData = kindex.ForYear(year);
            }
            else
            {
                AnnualData = KIndexData.Annual.Empty(year);
            }
        }