예제 #1
0
        /// <summary>
        /// Not used anymore because of Dependancy Injection.
        /// </summary>
        public ShellViewModel()
        {
            InitializeAll();

            ActivateItem(NewBudgetViewModel);
            lastScreenIsNF = true;

            DataViewModel.SortCategories();

            //SubCategoryViewModel.SubCatEventManager += this.SubCatEventManager_Event;
        }
예제 #2
0
 /// <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();
 }