コード例 #1
0
        private async void button_Click3(object sender, RoutedEventArgs e)
        {
            RootObject myCoin = await CoinProxy.getCoin();

            ShowToastNotification(myCoin.ico.upcoming[notificationCounter].name, myCoin.ico.upcoming[notificationCounter].description);
            notificationCounter++;
        }
コード例 #2
0
        private async void button_Click(object sender, RoutedEventArgs e)
        {
            RootObject myCoin = await CoinProxy.getCoin();

            textBlock.Text = "Displaying coins...";
            while (count <= (max - 1))
            {
                //textBlock.Text += "\nCoin: " + (count + 1) + " name: " + myCoin.ico.finished[count].name + " Description: " + myCoin.ico.finished[count].description + " Price: " + myCoin.ico.finished[count].price_usd;
                // Create a new ListView and add content.
                listItems.Add("\nCoin: " + (count + 1) + "\nname: " + myCoin.ico.finished[count].name + "\nPrice: " + myCoin.ico.finished[count].price_usd + "\nDescription: " + myCoin.ico.finished[count].description);

                count++;
            }
            // Create a new list view, add content,
            ListView itemListView = new ListView();

            itemListView.ItemsSource = listItems;
            stackPanel1.Children.Add(itemListView);

            count = 0;
        }
コード例 #3
0
        private async void button_Click3(object sender, RoutedEventArgs e)
        {
            int count = 0;
            int max   = 50;
            ObservableCollection <string> listItems = new ObservableCollection <string>();


            RootObject myCoin = await CoinProxy.getCoin();

            while (count <= (max - 1))
            {
                listItems.Add("\nCoin: " + (count + 1) + "\n name: " + myCoin.ico.upcoming[count].name + "\n Description: " + myCoin.ico.upcoming[count].description + "\n Timezone: " + myCoin.ico.upcoming[count].timezone
                              + "\n URL: " + myCoin.ico.upcoming[count].icowatchlist_url + "\n Start time: " + myCoin.ico.upcoming[count].start_time + "\n Website: " + myCoin.ico.upcoming[count].website_link);

                count++;
            }
            // Create a new list view, add content,
            ListView itemListView = new ListView();

            itemListView.ItemsSource = listItems;
            stackPanel1.Children.Add(itemListView);
        }