/// <summary> /// Not used anymore because of Dependancy Injection. /// </summary> public ShellViewModel() { InitializeAll(); ActivateItem(NewBudgetViewModel); lastScreenIsNF = true; DataViewModel.SortCategories(); //SubCategoryViewModel.SubCatEventManager += this.SubCatEventManager_Event; }
/// <summary> /// Switches to DataView.xaml. Updates the SubCategory Data. /// </summary> public void ViewData() { if (lastScreenIsNF) { _eventAggregator.PublishOnUIThread(new CancelNewEvent()); //CancellingNewBudget?.Invoke(this, new EventArgs()); } Activate_DataView(); DataViewModel.SortCategories(); SubCategoryViewModel.FinishCategories(); DataViewModel.UpdateData(); }