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(); }
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(); }