Beispiel #1
0
 protected virtual void OnProjectReloaded(ProjectDocumentItem item)
 {
     if (ProjectReloaded != null)
     {
         ProjectReloaded(this, item);
     }
 }
Beispiel #2
0
        void ProjectDocument_Loaded(Document sender)
        {
            --mLoading;

            if (mLoading == 0)
            {
                ProjectDocumentItem item = RootItem.FindDocument(sender.FileName) as ProjectDocumentItem;
                OnProjectReloaded(item);
            }
        }
Beispiel #3
0
        void Project_ProjectReloaded(Project sender, ProjectDocumentItem reloadedItem)
        {
            TreeNode node = FindItem(delegate(ProjectItem item) { return(item == reloadedItem); });

            if (node != null)
            {
                node.Collapse();
                node.Nodes.Clear();
                UpdateTree(node, reloadedItem);
            }
        }
        private void LoadProjectFromVCProj(string projFile)
        {
            XmlTextReader reader = new XmlTextReader(projFile);
            XmlDocument   doc    = new XmlDocument();

            doc.Load(reader);
            reader.Close();

            ProjectDocumentItem newRoot = new ProjectDocumentItem(this);

            newRoot.ProjectTag = doc;
            LoadFilesFromVCProj((XmlElement)doc.SelectSingleNode("VisualStudioProject/Files"), newRoot);

            mXmlDocument = doc;
            mRootItem    = newRoot;
        }
Beispiel #5
0
 void Project_ProjectReloaded(Project sender, ProjectDocumentItem reloadedItem)
 {
     UpdateFileList(sender);
 }