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(); }
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; }