Exemple #1
0
 public MakeChangeViewModel(ICurrencyRepo repo)
 {
     this.repo         = repo;
     MakeChangeCommand = new BasicCommand(UpdateMakeChange);
     SaveChangeCommand = new BasicCommand(SaveChangeMade);
     LoadChangeCommand = new BasicCommand(LoadRepo);
 }
Exemple #2
0
        public CurrencyRepoViewModel(ICurrencyRepo repo)
        {
            this.repo      = repo;
            AddCoinCommand = new BasicCommand(AddCoinsToRepo);
            SaveCommand    = new BasicCommand(SaveRepo);
            LoadCommand    = new BasicCommand(LoadRepo);

            CoinType     = new ObservableCollection <ICoin>(((USCurrencyRepo)repo).CurrencyList);
            this.CoinNum = 1;
        }