public SolutionProjectRootNode(SolutionManager manager, SolutionProjectInfo pi, FiledropsDirectory di, Binding showext, FolderTreeNodeFilter filter) : base(manager, pi, di, showext) { this.filter = filter; this.pi = pi; this.manager = manager; }
public FolderTreeNode GetTreeNodeWithProject(SolutionProjectInfo spi) { foreach (object n in this.solutionTree.Items) { if (n != null && n is IProjectNode && (n as IProjectNode).GetProject().ProjectFile.FullName.Equals(spi.ProjectFile.FullName)) { return n as FolderTreeNode; } } return null; }
public void initSolutionProject(FiledropsFile f, FiledropsFileSystem fs) { SolutionProjectInfo spi = new SolutionProjectInfo(this, f, Manager, fs); initSolutionProject(spi); }
public void initSolutionProject(SolutionProjectInfo spi) { projects.Add(spi.ProjectFile.Parent.Name, spi); }
public void addProject(SolutionProjectInfo spi) { // Initialize this project initSolutionProject(spi); AddProjectToSolutionFile(spi.ProjectFile); }
public void closeProject(SolutionProjectInfo pi) { FiledropsFile f = pi.ProjectFile; if (projects.ContainsKey(f.NameWithoutExtension) && pi.CloseProject()) { projects.Remove(f.NameWithoutExtension); // Remove this project from the .fdsln file XmlDocument doc = new XmlDocument(); doc.Load(Solutionfile.FullName); XmlNode root = doc.DocumentElement; foreach (XmlNode node in root.SelectNodes("Project")) { if (node.SelectSingleNode("Location").InnerText.Equals(pi.ProjectFile.FullName)) { root.RemoveChild(node); break; } } Solutionfile.Create(doc.OuterXml); } }