Beispiel #1
0
 public void LoadSettingsBanks()
 {
     if (!ReferenceEquals(null, Settings.SaveSettingsBanks))
     {
         CurrencyBank = SortBank.SortBanksByExchangeAction
                            (Settings.SaveSettingsBanks, EExchangeAction.EURBuy);
     }
 }
Beispiel #2
0
 public async Task DownloadData()
 {
     if (ReferenceEquals(null, Settings.SaveSettingsBanks) &
         ReferenceEquals(null, Settings.SaveSettingsCitySelect))
     {
         CurrencyBank = SortBank.SortBanksByExchangeAction
                            (Banks = await _dataService.GetBanks(4212), EExchangeAction.EURBuy);
     }
     else if (ReferenceEquals(null, Settings.SaveSettingsBanks))
     {
         CurrencyBank = SortBank.SortBanksByExchangeAction
                            (Banks = await _dataService.GetBanks(Settings.SaveSettingsCitySelect.Id), Settings.SaveParamSortBanks);
     }
     else
     {
         CurrencyBank = SortBank.SortBanksByExchangeAction
                            (Banks = Settings.SaveSettingsBanks, Settings.SaveParamSortBanks);
     }
 }