public LiveRatesVM(ICurrencyBusinessLogic logic, AppPreferences prefs) { this.logic = logic; AvailableCurrencies = logic.AvailableCurrencies.ToArray(); SourceCurrencies = AvailableCurrencies; TargetCurrency = prefs.MainTargetCurrency; }
public HistoryVM(ICurrencyBusinessLogic logic, AppPreferences prefs) { this.logic = logic; this.FlipCurrenciesCommand = new AbstractCommand(_ => { var oldSource = SourceCurrency; var oldTarget = TargetCurrency; SourceCurrency = oldTarget; TargetCurrency = oldSource; }); this.AvailableCurrencies = logic.AvailableCurrencies.ToArray(); SourceCurrency = prefs.DefaultSourceCurrency; TargetCurrency = prefs.MainTargetCurrency; WeekChecked = true; }
public AppPreferences(ICurrencyBusinessLogic logic) { this.logic = logic; }
public ViewModelInjection(ICurrencyBusinessLogic logic, AppPreferences settings) { this.logic = logic; this.settings = settings; }