Ejemplo n.º 1
0
        void UpdatePrices()
        {
            Status = "Fetching Groestlcoin Price...";
            var prices = Task.Run(() => SettingsModelContainer.UpdatePrice(SettingsInstance));

            prices.Wait();

            SettingsInstance = prices.Result.SettingsModel;
            RaisePropertyChanged("SelectedCurrency");
            RaisePropertyChanged("SelectedCurrencySymbol");
            Status = prices.Result.Status;
            Errors = prices.Result.Errors.GetErrors();
        }
Ejemplo n.º 2
0
        public async void UpdatePrice()
        {
            IsReceiving = true;
            Status      = "Fetching Groestlcoin Price...";
            Settings.SelectedCurrency    = SelectedCurrency;
            Settings.LocalCurrencySymbol = SelectedCurrencySymbol;

            var prices = await SettingsModelContainer.UpdatePrice(Settings);

            Settings = prices.SettingsModel;
            RaisePropertyChanged("SelectedCurrency");
            RaisePropertyChanged("SelectedCurrencySymbol");
            Status      = prices.Status;
            Errors      = prices.Errors.GetErrors();
            IsReceiving = false;
        }