Beispiel #1
0
 private void OnRatesloaded(object sender, Rates.Events.RatesEventArgs e)
 {
     Rates  = e.Rates;
     NoData = !e.Rates.Any();
     OnPropertyChanged("Rates", "NoData");
     OnCompleted();
 }
Beispiel #2
0
        private void RatesUpdated(object sender, Rates.Events.RatesEventArgs e)
        {
            var rates = e.Rates;
            var rate  = rates.FirstOrDefault(x => x.Uid.Equals(State.Currency.ToString()));

            if (rate != null)
            {
                Rate = rate.SellRate > rate.BuyRate? rate.SellRate : rate.BuyRate;
            }

            _buying = rate.BuyRate > rate.SellRate;

            OnCompleted();
        }