Пример #1
0
        /// <summary>
        /// Start initialization of MainWindows Prices
        /// </summary>
        private void Initprice()
        {
            ExchangePrice exchange = new ExchangePrice();

            exchange.GetPrice(BTCEUR_VAL, "BTC", "EUR");
            exchange.GetPrice(LTCEURVAL, "LTC", "EUR");
            exchange.GetPrice(BTCUSD_VAL, "BTC", "USD");
            exchange.GetPrice(LTCUSDVAL, "LTC", "USD");


            CBSpotPrice spot = new CBSpotPrice();

            SporTest.Text = spot.Getspotprice("USD", "BTC");
        }
Пример #2
0
        private void dispatcherTimer_Tick(object sender, EventArgs e)
        {
            if ((bool)TagleRefreshData.IsChecked)
            {
                InitRefresh(RefreshProgress, GetSliderValue());
            }
            ExchangePrice exchangePrice = new ExchangePrice();

            //BTC > EUR
            exchangePrice.GetPrice(BTCEUR_VAL, "BTC", "EUR");
            exchangePrice.SetArrow(BTCEURARROW, _btceurval, exchangePrice.Btceurprice, out _btceurval);
            //LTC > EUR
            exchangePrice.GetPrice(LTCEURVAL, "LTC", "EUR");
            exchangePrice.SetArrow(LTCARROW, _ltceurval, exchangePrice.Ltceurprice, out _ltceurval);
            //BTC > USD
            exchangePrice.GetPrice(BTCUSD_VAL, "BTC", "USD");
            exchangePrice.SetArrow(BTCUSDARROW, _btcusdval, exchangePrice.Btcusdprice, out _btcusdval);
            // LTC > USD
            exchangePrice.GetPrice(LTCUSDVAL, "LTC", "USD");
            exchangePrice.SetArrow(LTCUSDARROW, _ltcusdval, exchangePrice.Ltcusdprice, out _ltcusdval);
        }