Exemplo n.º 1
0
 private void Initialize()
 {
     foreach (var cur in _persistencyManager.GetSelectedCurrencies())
     {
         Currencies.Add(new CurrencyViewModel(cur, _currencyManager, _messenger));
     }
 }
Exemplo n.º 2
0
        private void Initialize(ICurrencyManager currencyManager, IPersistencyManager persistencyManager)
        {
            var selectedCurrencies = persistencyManager.GetSelectedCurrencies();
            var allCurrencies      = currencyManager.Currencies;

            Currencies = new ObservableCollection <Currency>(allCurrencies.Except(selectedCurrencies));
        }