Exemple #1
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (base.ProjectPane != null)
         {
             base.Services.ViewService().ViewOpened -= new ViewEventHandler(this.ViewService_ViewOpened);
             base.Services.ViewService().ViewClosed -= new ViewEventHandler(this.ViewService_ViewClosed);
             base.ProjectPane = null;
         }
         if (this.projectItem != null)
         {
             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);
             this.projectItem = null;
         }
         if (this.knownProjectNode != null)
         {
             ((IProject)this.knownProjectNode.Project).StartupItemChanged -= new EventHandler <ProjectItemChangedEventArgs>(this.Project_StartupSceneChanged);
         }
         this.projectNode      = null;
         this.knownProjectNode = null;
         ProjectItemNode projectItemNode = this;
         base.IsExpandedChanged -= new EventHandler(projectItemNode.ProjectItemNode_IsExpandedChanged);
         base.Dispose(disposing);
     }
 }
Exemple #2
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);
            }
        }
Exemple #3
0
 internal FolderNode(FolderProjectItem projectItem, Microsoft.Expression.Project.UserInterface.ProjectPane projectPane, Microsoft.Expression.Project.UserInterface.ProjectNode projectNode) : base(projectItem, projectPane, projectNode)
 {
     this.folderProjectItem = projectItem;
 }
Exemple #4
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);
        }