protected override void OnViewLoaded(object view) { if (!context.Database.Exists()) { IWindowManager manager = new WindowManager(); DBInitializationViewModel dbInitializingView = new DBInitializationViewModel(context); manager.ShowDialog(dbInitializingView, null, null); } ActiveItem = new ClientGridViewModel(); }
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(); } }