private void LoadSharedDomains(WorkspaceModel theWorkspace, ModelEditorTabViewModel newDesignerViewModel)
 {
     foreach (var domainModel in theWorkspace.Model.SharedDomains)
     {
         var domainViewModel = _sharedDomainLoader.MapFrom(domainModel);
         newDesignerViewModel.FixupDomain(domainViewModel);
     }
 }
 private void LoadSingletonVariables(WorkspaceModel theWorkspace, ModelEditorTabViewModel newModelEditor)
 {
     foreach (var variableModel in theWorkspace.Model.Singletons)
     {
         var variableViewModel = _variableLoader.MapFrom(variableModel);
         newModelEditor.FixupSingletonVariable(variableViewModel);
     }
 }
 private void LoadConstraints(WorkspaceModel theWorkspace, ModelEditorTabViewModel newModelEditor)
 {
     foreach (var constraintModel in theWorkspace.Model.Constraints)
     {
         var constraintViewModel = _constraintLoader.MapFrom(constraintModel);
         newModelEditor.FixupConstraint(constraintViewModel);
     }
 }
 private void LoadAggregateVariables(WorkspaceModel theWorkspace, ModelEditorTabViewModel newModelEditor)
 {
     foreach (var aggregateModel in theWorkspace.Model.Aggregates)
     {
         var variableViewModel = _variableLoader.MapFrom(aggregateModel);
         newModelEditor.FixupAggregateVariable(variableViewModel);
     }
 }