コード例 #1
0
        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();
            }
        }
コード例 #2
0
 public void LoadEventReadOnlyPage()
 {
     ActiveItem = new EventReadOnlyGridViewModel();
 }