public MainWindowViewModel()
 {
     StatusBar = new StatusBarViewModel();
     Menu = new MenuViewModel(StatusBar);
     Menu.ChangeContent += content =>
     {
         (Content as ViewModelBase)?.Dispose();
         Content = content;
     };
     Menu.OnStartup();
 }
 public FunctionalViewModelBase(StatusBarViewModel statusbar, MenuViewModel.HideMenu hide = null)
 {
     _statusbar = statusbar;
     _hideMenu = hide;
     try
     {
         DatabaseManager.LoadData("Дисциплины", out _subjectList);
         DatabaseManager.LoadData("Темы", out _topicList);
         DatabaseManager.LoadData("Подтемы", out _subTopicList);
     }
     catch (Exception ex)
     { MessageBox.Show(ex.Message, App.Current.MainWindow.Title, MessageBoxButton.OK, MessageBoxImage.Error, MessageBoxResult.OK); }
     _model = new QuestionTableModel();
 }
 public EditQuestionsViewModel(StatusBarViewModel statusbar, MenuViewModel.HideMenu hide)
     : base(statusbar, hide)
 {
 }
 public AddMuchQuestionViewModel(StatusBarViewModel statusbar, MenuViewModel.HideMenu hide)
     : base(statusbar, hide)
 {
 }