Exemplo n.º 1
0
 internal HierarchicalNode(IDocumentItem documentItem, Microsoft.Expression.Project.UserInterface.ProjectPane projectPane)
 {
     this.ProjectPane     = projectPane;
     this.documentItem    = documentItem;
     this.serviceProvider = projectPane.Services;
     if (documentItem != null)
     {
         base.IsSelected = this.Services.ProjectManager().ItemSelectionSet.IsSelected(this.documentItem);
     }
 }
Exemplo n.º 2
0
        internal static ProjectItemNode Create(IProjectItem projectItem, Microsoft.Expression.Project.UserInterface.ProjectPane projectPane, Microsoft.Expression.Project.UserInterface.ProjectNode projectNode)
        {
            ProjectItemNode   projectItemNode   = null;
            FolderProjectItem folderProjectItem = projectItem as FolderProjectItem;

            if (folderProjectItem == null)
            {
                projectItemNode = new ProjectItemNode(projectItem, projectPane, projectNode);
            }
            else
            {
                projectItemNode = new FolderNode(folderProjectItem, projectPane, projectNode);
            }
            return(projectItemNode);
        }
Exemplo n.º 3
0
 internal KnownProjectNode(IProject project, Microsoft.Expression.Project.UserInterface.ProjectPane projectPane) : base(project, projectPane)
 {
     this.project                  = project;
     this.project.ItemAdded       += new EventHandler <ProjectItemEventArgs>(this.Project_ItemAdded);
     this.project.ItemRemoved     += new EventHandler <ProjectItemEventArgs>(this.Project_ItemRemoved);
     this.project.ItemRenamed     += new EventHandler <ProjectItemRenamedEventArgs>(this.Project_ItemRenamed);
     this.project.ItemChanged     += new EventHandler <ProjectItemEventArgs>(this.Project_ItemChanged);
     this.project.ItemDeleted     += new EventHandler <ProjectItemEventArgs>(this.Project_ItemDeleted);
     this.project.PropertyChanged += new PropertyChangedEventHandler(this.Project_PropertyChanged);
     if (this.project.GetCapability <bool>("CanAddAssemblyReference") || this.project.GetCapability <bool>("CanAddProjectReference"))
     {
         this.referencesFolder = ProjectItemNode.Create(new FolderStandIn(this.project, StringTable.ProjectNodeReferencesFolderName, base.Services), projectPane, this);
         base.AddSortedItemNode(this.referencesFolder);
         this.referencesFolder.IsExpanded = false;
     }
     this.AddAllProjectItems();
     this.IsExpanded = true;
     ((ProjectManager)base.Services.ProjectManager()).StartupProjectChanged += new EventHandler(this.ProjectManager_StartupProjectChanged);
 }
Exemplo n.º 4
0
        protected ProjectItemNode(IProjectItem projectItem, Microsoft.Expression.Project.UserInterface.ProjectPane projectPane, Microsoft.Expression.Project.UserInterface.ProjectNode projectNode) : base(projectItem, projectPane)
        {
            this.projectItem      = projectItem;
            base.ProjectPane      = projectPane;
            this.projectNode      = projectNode;
            this.knownProjectNode = this.projectNode as KnownProjectNode;
            base.Services.ViewService().ViewOpened += new ViewEventHandler(this.ViewService_ViewOpened);
            base.Services.ViewService().ViewClosed += new ViewEventHandler(this.ViewService_ViewClosed);
            this.projectItem.IsDirtyChanged         += new EventHandler(this.ProjectItem_IsDirtyChanged);
            this.projectItem.IsCutChanged           += new EventHandler(this.ProjectItem_IsCutChanged);
            this.projectItem.ParentChanged          += new EventHandler(this.ProjectItem_ParentChanged);
            this.projectItem.FileInformationChanged += new FileSystemEventHandler(this.ProjectItem_FileInformationChanged);
            ProjectItemNode projectItemNode = this;

            base.IsExpandedChanged += new EventHandler(projectItemNode.ProjectItemNode_IsExpandedChanged);
            if (this.knownProjectNode != null)
            {
                ((IProject)this.knownProjectNode.Project).StartupItemChanged += new EventHandler <ProjectItemChangedEventArgs>(this.Project_StartupSceneChanged);
            }
        }
Exemplo n.º 5
0
 public RootHierarchicalNode(Microsoft.Expression.Project.UserInterface.ProjectPane projectPane) : base(null, projectPane)
 {
 }
Exemplo n.º 6
0
 internal SolutionNode(ISolution solution, Microsoft.Expression.Project.UserInterface.ProjectPane projectPane) : base(solution, projectPane)
 {
     this.solution   = solution;
     this.IsExpanded = true;
     base.Children.CollectionChanged += new NotifyCollectionChangedEventHandler(this.SolutionNode_CollectionChanged);
 }
Exemplo n.º 7
0
 internal FolderNode(FolderProjectItem projectItem, Microsoft.Expression.Project.UserInterface.ProjectPane projectPane, Microsoft.Expression.Project.UserInterface.ProjectNode projectNode) : base(projectItem, projectPane, projectNode)
 {
     this.folderProjectItem = projectItem;
 }
Exemplo n.º 8
0
 internal ProjectNode(INamedProject project, Microsoft.Expression.Project.UserInterface.ProjectPane projectPane) : base(project, projectPane)
 {
     this.project            = project;
     base.IsExpandedChanged += new EventHandler(this.ProjectItemNode_IsExpandedChanged);
 }