Exemplo n.º 1
0
 protected WorkspaceViewModel()
 {
     Repository = ExpensesRepo.Instance;
     Types      = new ReadOnlyCollection <TypeTran>(Repository.Types);
     Categories = new ObservableCollection <Category>(Repository.Categories);
     MoneyEnts.ClearAndAddRange(Repository.MoneyEntryContainer);
     MoneyEnts.CollectionChanged += ModifyCollectionsBindings;
 }
Exemplo n.º 2
0
 protected WorkspaceViewModel(DateTime start, DateTime end, int personId)
 {
     Repository     = ExpensesRepo.Instance;
     Types          = new ReadOnlyCollection <TypeTran>(Repository.Types);
     Categories     = new ObservableCollection <Category>(Repository.Categories);
     TextCollection = new ReadOnlyCollection <string>(Repository.TextEntryAcrossRange(start, end, personId));
     MoneyEnts.ClearAndAddRange(Repository.MoneyEntryContainer);
     MoneyEnts.CollectionChanged += ModifyCollectionsBindings;
 }