/// <summary> /// Creates a new instance of LoginView right after the start of the application /// </summary> /// <param name="events"></param> /// <param name="container"></param> /// <param name="mainMenuVM"></param> /// <param name="browseBuildsVM"></param> public ShellViewModel(IEventAggregator events, SimpleContainer container, MainMenuViewModel mainMenuVM, BrowseBuildsViewModel browseBuildsVM) { _events = events; _mainMenuVM = mainMenuVM; _browseBuildVM = browseBuildsVM; _container = container; _events.Subscribe(this); ActivateItem(_container.GetInstance <LoginViewModel>()); }
/// <summary> /// Changes the currently shown view to BrowseBuildsView /// </summary> /// <param name="message"></param> public void Handle(BrowseBuildsEvent message) { Saved = message.Saved; _browseBuildVM = new BrowseBuildsViewModel(_events, userId, Saved); ActivateItem(_browseBuildVM); }