コード例 #1
0
        public void ShowVerificationResults()
        {
            var loader = ViewModelFactory.CreateDelayedTask(this, () =>
            {
                UpdateErrors();
                if (_currentErrors.Count > 0)
                {
                    ViewModelFactory.ShowModel(ViewModelFactory.CreateViewModel <ErrorListViewModel.Factory>().Invoke(DataContext, this), true);
                }
            });

            loader.Trigger();
        }
コード例 #2
0
        public void OpenAll()
        {
            var newCtx       = _ctxFactory();
            var newWorkspace = ViewModelFactory.CreateViewModel <ObjectEditor.WorkspaceViewModel.Factory>().Invoke(newCtx, null);

            ViewModelFactory.ShowModel(newWorkspace, true);

            ViewModelFactory.CreateDelayedTask(newWorkspace, () =>
            {
                foreach (var obj in ListViewModel.Instances)
                {
                    newWorkspace.ShowForeignModel(obj);
                }
                newWorkspace.SelectedItem = newWorkspace.Items.FirstOrDefault();
                newWorkspace.IsBusy       = false;
            }).Trigger();
        }