The main menu view model class.
Inheritance: Caliburn.Micro.PropertyChangedBase
Exemple #1
0
        public MainViewModel(IWindowManager windowManager, IEventAggregator events)
        {
            _windowManager = windowManager;
            _events        = events;
            _events.Subscribe(this);

            UpdateTitle(string.Empty);

            MainMenuViewModel = new MainMenuViewModel(_windowManager, _events);

            HomeViewModel = new HomeViewModel();
            StreetFighterLibraryViewModel = new StreetFighterLibraryViewModel(_events);
            ComboTrainerViewModel         = new ComboTrainerViewModel(_events);
            OptionsViewModel = new OptionsViewModel(_events);

            HomeTabItemSelected = true;
        }
        public MainViewModel(IWindowManager windowManager, IEventAggregator events)
        {
            _windowManager = windowManager;
            _events = events;
            _events.Subscribe(this);

            UpdateTitle(string.Empty);

            MainMenuViewModel = new MainMenuViewModel(_windowManager,_events);

            HomeViewModel = new HomeViewModel();
            StreetFighterLibraryViewModel = new StreetFighterLibraryViewModel(_events);
            ComboTrainerViewModel = new ComboTrainerViewModel(_events);
            OptionsViewModel = new OptionsViewModel(_events);

            HomeTabItemSelected = true;
        }