Ejemplo n.º 1
0
        public async void init()
        {
            TotalMarketCap totalMarketCap = await OpenCoinMarketCapProxy.GetTotalMarketCap();

            cryptocurrencyList = await OpenCoinMarketCapProxy.GetCryptocurrencyList();

            totalMarketCapValue = totalMarketCap.total_market_cap_usd;
            calculateMarketCapRestValue();
        }
Ejemplo n.º 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();
        }