コード例 #1
0
 public ExchangeRateViewModel(string currencyCode, BitcoinExchangeRate exchangeRate)
 {
     _exchangeRate              = exchangeRate;
     _currencyCode              = currencyCode ?? "";
     _mainViewModel             = ServiceLocator.Current.GetInstance <MainViewModel>();
     _bitcoinDataService        = ServiceLocator.Current.GetInstance <IBitcoinDataService>();
     _rateSettingsApplyService  = ServiceLocator.Current.GetInstance <IRateSettingsApplyService>();
     _customCurrencyCodeServise = ServiceLocator.Current.GetInstance <ICustomCurrencySymbolService>();
 }
コード例 #2
0
 public BitcoinDataService(IDataProvideService dataProvideService, IRateSettingsApplyService rateSettingsApplyService,
                           ICustomCurrencySymbolService customCurrencyCodeService, INetworkService networkService)
 {
     _helper                    = new CurrencyHelper();
     _dataProvideService        = dataProvideService;
     _rateSettingsApplyService  = rateSettingsApplyService;
     _customCurrencyCodeService = customCurrencyCodeService;
     _networkService            = networkService;
 }