public ShellViewModel(ISessionHelper _session, IEventAggregator events) { _events = events; _events.Subscribe(this); if (_session.IsAuthenticated() != true) { IWindowManager manager = new WindowManager(); manager.ShowWindow(new LoginViewModel(_session, _events), null, null); } _homeVM = new HomeViewModel(); ActivateItem(_homeVM); }