Пример #1
0
        public CASEView()
        {
            InitializeComponent();
            edenIF = new EdenIF("admin", "98321abc");
            //QEng.bActiveWACC = true;
            ISIN = "KR7005930003";

            // init chile views
            ProfileView.Init(edenIF);
            AnalysisView.Init(edenIF);
            ChartView.Init(edenIF);
            FinancialsView.Init(edenIF);
            NewsView.Init(edenIF);
            DisclosureView.Init(edenIF);
            //ReportView.Init(edenIF);

            DataTable properties = edenIF.GetProperties();

            foreach (DataRow row in properties.Rows)
            {
                companyList.Add(row[1].ToString());
            }

            // initialize
            UpdateContent(ISIN);
            UpdateChildViews(ISIN);

            // init configurations
            configManager = new ConfigManager("configurations.xml");
            configManager.Load();
            configManager.AddSection("watchlist");
            InitWatchlist();
        }
Пример #2
0
        public void UpdateChildViews(string isin)
        {
            if (edenIF.ContainsFinancials(ISIN, AccountingStandard.IFRS_CON) == true)
            {
                standard = AccountingStandard.IFRS_CON;
            }
            else if (edenIF.ContainsFinancials(ISIN, AccountingStandard.IFRS_SEP) == true)
            {
                standard = AccountingStandard.IFRS_SEP;
            }
            else
            {
                standard = AccountingStandard.Undefined;
            }

            QEng.TrySetCompany(ISIN, standard, false);
            QEng.Pricing();

            ProfileView.UpdateContent(isin, QEng);
            AnalysisView.UpdateContent(isin, QEng);
            ChartView.UpdateContent(isin, QEng);
            FinancialsView.UpdateContent(isin, QEng);
            NewsView.UpdateContent(isin, QEng);
            DisclosureView.UpdateContent(isin, QEng);
            //ReportView.UpdateContent(isin, QEng);
        }