示例#1
0
        /// <summary>
        /// Async Method for show all chatrs
        /// </summary>
        private async void ShowCharts()
        {
            var model = new ViewCharts(); // init base url

            model.SetNewBaseUri();

            List <DataPointChart> dataList = new List <DataPointChart>();

            dataList = await ViewCharts.GetPointsData("total-bitcoins");

            if (dataList.Count > 0)
            {
                this.ciculationBTC.Content = CreateChart(dataList);
            }
            dataList = await ViewCharts.GetPointsData("market-price");

            if (dataList.Count > 0)
            {
                this.marketPriceUSD.Content = CreateChart(dataList);
            }
            dataList = await ViewCharts.GetPointsData("market-cap");

            if (dataList.Count > 0)
            {
                this.marketCapatalization.Content = CreateChart(dataList);
            }
            dataList = await ViewCharts.GetPointsData("trade-volume");

            if (dataList.Count > 0)
            {
                this.exchangeTradeVolume.Content = CreateChart(dataList);
            }
        }
示例#2
0
        private async void ShowChartMarketPrice()
        {
            //var model = new ViewCharts();
            List <DataPointChart> dataList = new List <DataPointChart>();

            //model.DataFirstList = ViewCharts.GetPointsData("total-bitcoins");
            //model.DataSecondList = await ViewCharts.GetPointsData("market-price");
            dataList = await ViewCharts.GetPointsData("market-price");

            //model.DataThirdList = ViewCharts.GetPointsData("market-cap");
            //model.DataFourthList = ViewCharts.GetPointsData("trade-volume");

            this.marketPriceUSD.Content = CreateChart(dataList);
        }