public BudgetsViewModel(HttpClient apiClient,
                                AddViewModel addViewModel,
                                EditBudgetViewModel editBudgetViewModel)
        {
            _apiClient           = apiClient;
            _addViewModel        = addViewModel;
            _editBudgetViewModel = editBudgetViewModel;

            _addViewModel.OnBudgetAdded          = OnBudgetAdded;
            _editBudgetViewModel.BudgetModified += (s, e) => _ = RetrieveBudgets();
        }
Exemple #2
0
 public ExpensesViewModel(CategoryManager categoryManager,
                          AddViewModel addViewModel,
                          EditCategoriesViewModel editCategoriesViewModel) : base(addViewModel, categoryManager, editCategoriesViewModel)
 {
 }