protected override void OnViewLoaded(object view) { if (!context.Database.Exists()) { IWindowManager manager = new WindowManager(); DBInitializationViewModel dbInitializingView = new DBInitializationViewModel(context); bool?result2 = manager.ShowDialog(dbInitializingView, null, null); } IWindowManager manager2 = new WindowManager(); LogInViewModel logInView = new LogInViewModel(); bool? result = manager2.ShowDialog(logInView, null, null); if (result == true) { ChangeVisibilty(); ChangeLogInButtonContent(); ActiveItem = new EventReadOnlyGridViewModel(); } else { ActiveItem = new BlankViewModel(); } }
public void LoadEventReadOnlyPage() { ActiveItem = new EventReadOnlyGridViewModel(); }