Exemple #1
0
        public async void init()
        {
            TotalMarketCap totalMarketCap = await OpenCoinMarketCapProxy.GetTotalMarketCap();

            cryptocurrencyList = await OpenCoinMarketCapProxy.GetCryptocurrencyList();

            totalMarketCapValue = totalMarketCap.total_market_cap_usd;
            calculateMarketCapRestValue();
        }
Exemple #2
0
        private async void setCryptocurrencyList()
        {
            CryptocurrencyListView.Items.Clear();

            List <Cryptocurrency> cryptocurrencyList = await OpenCoinMarketCapProxy.GetCryptocurrencyList();

            foreach (Cryptocurrency cryptocurrency in cryptocurrencyList)
            {
                String cryptocurrencyRow = cryptocurrency.name + " Price: " + cryptocurrency.price_usd + "$" + "  Changes: [1h]: " + cryptocurrency.percent_change_1h + "%" + " [24h]: " + cryptocurrency.percent_change_24h + "%";
                CryptocurrencyListView.Items.Add(cryptocurrencyRow);
            }
            //PieChartViewModel pieChartViewModel = new PieChartViewModel(cryptocurrencyList);
            //PieChartCollection = pieChartViewModel.getPieChartCollection();
        }
Exemple #3
0
        private async void setTotalMarketCap()
        {
            TotalMarketCap totalMarketCap = await OpenCoinMarketCapProxy.GetTotalMarketCap();

            ResultTextBlock.Text = "Total Market Cap: " + totalMarketCap.total_market_cap_usd.ToString() + "$";
        }