public ManageGoalsViewModel(IRepository repository, IWindowService windowService) { _repository = repository; _windowService = windowService; _areas = new List <string>(); _categories = new List <Category>(); _categoryTypes = new List <CategoryTypeSelectionItem>(CategoryTypeSelectionItem.GetList()); GoalViewModels = new ObservableCollection <GoalViewModel>(); _repository.GoalsUpdated += async(s, a) => await Initialize(); }
public SearchTransactionListViewModel(IRepository repository, IWindowService windowService) : base(repository, windowService, true) { _categoryTypeList = CategoryTypeSelectionItem.GetList(); InitializeRecurringOptionList(); Repository.CategoriesUpdated += (s, a) => InitializeAreaCategoryList(); }