Ejemplo n.º 1
0
        private void commonShowScene(AnomalyController anomalyController)
        {
            if (!shown)
            {
                if (editInterface != null)
                {
                    editInterface.IconReferenceTag = AnomalyIcons.ProjectBuilt;
                }

                shown = true;

                anomalyController.ResourceController.addResources(resourceFileInterface.getFileObject());

                instanceGroup.showInstances(anomalyController.SimObjectController);

                foreach (ProjectReference reference in projectData.ProjectReferences.ReferencedProjectNames)
                {
                    Project subProject = solution.getProject(reference.ProjectName);
                    if (subProject != null)
                    {
                        subProject.commonShowScene(anomalyController);
                    }
                    else
                    {
                        Log.Error("Could not find referenced project {0} for project {1}. Project could not be shown.", reference.ProjectName, Name);
                    }
                }
            }
        }
Ejemplo n.º 2
0
 public void addGroup(InstanceGroup group)
 {
     group.parent = this;
     groups.Add(group.name, group);
     if (instancesDisplayed)
     {
         group.showInstances(simObjectController);
     }
     if (editInterface != null)
     {
         addGroupSubInterface(group);
     }
 }