Exemplo n.º 1
0
        void UpdateGoogleSummaryInfo(CompanyQuery cq)
        {
            lblGCompanyName.Content = cq.GoogleQuery.CompanyInfo.Name;
            lblGTicker.Content = cq.GoogleQuery.CompanyInfo.Ticker;
            lblGExchange.Content = cq.GoogleQuery.CompanyInfo.Exchange;

            lblGHL.Content = cq.GoogleQuery.CompanyInfo.RangeLow;
            lblGHR.Content = cq.GoogleQuery.CompanyInfo.RangeHigh;

            lblGYHL.Content = cq.GoogleQuery.CompanyInfo.FiftyTwoWeekLow;
            lblGYHR.Content = cq.GoogleQuery.CompanyInfo.FiftyTwoWeekHigh;

            lblGOpen.Content = cq.GoogleQuery.CompanyInfo.Open;
            lblGClose.Content = cq.GoogleQuery.CompanyInfo.Close;

            lblGPE.Content = cq.GoogleQuery.CompanyInfo.PriceEarnings;
            lblEPS.Content = cq.GoogleQuery.CompanyInfo.EarningsPerShare;

            lblGInstOwn.Content = cq.GoogleQuery.CompanyInfo.InstitutionalOwnership;
            lblGBeta.Content = cq.GoogleQuery.CompanyInfo.Beta;
            lblGMC.Content = cq.GoogleQuery.CompanyInfo.MarketCap;
            lblGShares.Content = cq.GoogleQuery.CompanyInfo.Shares;
        }
Exemplo n.º 2
0
 void UpdateResultTabControl( CompanyQuery cq )
 {
     UpdateGoogleSummaryInfo( cq );
     UpdateGoogleFinancialStatementInfo( cq );
 }
Exemplo n.º 3
0
        void UpdateGoogleFinancialStatementInfo( CompanyQuery cq )
        {
            var curLB = lbBSA;
            if ( curLB.Items.Count != 0 ) curLB.Items.Clear( );

            foreach ( var item in cq.GoogleQuery.CompanyInfo.BalanceSheets.Where( i => i.Period == KNMFin.Google.Period.Annual ) )
                curLB.Items.Add( item.PeriodEnd.ToShortDateString( ) );

            curLB = lbBSQ;
            if ( curLB.Items.Count != 0 ) curLB.Items.Clear( );

            foreach ( var item in cq.GoogleQuery.CompanyInfo.BalanceSheets.Where( i => i.Period == KNMFin.Google.Period.Quarter ) )
                curLB.Items.Add( item.PeriodEnd.ToShortDateString( ) );

            curLB = lbISA;
            if ( curLB.Items.Count != 0 ) curLB.Items.Clear( );
            foreach ( var item in cq.GoogleQuery.CompanyInfo.IncomeStatements.Where( i => i.Period == KNMFin.Google.Period.Annual ) )
                curLB.Items.Add( item.PeriodEnd.ToShortDateString( ) );

            curLB = lbISQ;
            if ( curLB.Items.Count != 0 ) curLB.Items.Clear( );

            foreach ( var item in cq.GoogleQuery.CompanyInfo.IncomeStatements.Where( i => i.Period == KNMFin.Google.Period.Quarter ) )
                curLB.Items.Add( item.PeriodEnd.ToShortDateString( ) );

            curLB = lbSoCFA;
            if ( curLB.Items.Count != 0 ) curLB.Items.Clear( );
            foreach ( var item in cq.GoogleQuery.CompanyInfo.CashFlowStatements.Where( i => i.Period == KNMFin.Google.Period.Annual ) )
                curLB.Items.Add( item.PeriodEnd.ToShortDateString( ) );

            curLB = lbSoCFQ;
            if ( curLB.Items.Count != 0 ) curLB.Items.Clear( );

            foreach ( var item in cq.GoogleQuery.CompanyInfo.CashFlowStatements.Where( i => i.Period == KNMFin.Google.Period.Quarter ) )
                curLB.Items.Add( item.PeriodEnd.ToShortDateString( ) );
        }