public static TreeNode AddWebReference(WebReferencesFolderNode webReferencesFolderNode, WebReference webReference)
		{
			WebReferenceNode node = new WebReferenceNode(webReference);
			node.FileNodeStatus = FileNodeStatus.InProject;
			node.InsertSorted(webReferencesFolderNode);
			return node;
		}
Ejemplo n.º 2
0
        public static TreeNode AddWebReference(WebReferencesFolderNode webReferencesFolderNode, WebReference webReference)
        {
            WebReferenceNode node = new WebReferenceNode(webReference);

            node.FileNodeStatus = FileNodeStatus.InProject;
            node.InsertSorted(webReferencesFolderNode);
            return(node);
        }
		public static TreeNode AddWebReferencesFolderNode(ProjectNode projectNode, WebReference webReference)
		{
			if (webReference.WebReferencesProjectItem != null) {
				WebReferencesFolderNode webReferencesFolderNode = new WebReferencesFolderNode(webReference.WebReferencesProjectItem);
				webReferencesFolderNode.FileNodeStatus = FileNodeStatus.InProject;
				webReferencesFolderNode.InsertSorted(projectNode);
				return webReferencesFolderNode;
			}	
			return null;
		}
Ejemplo n.º 4
0
 public static TreeNode AddWebReferencesFolderNode(ProjectNode projectNode, WebReference webReference)
 {
     if (webReference.WebReferencesProjectItem != null)
     {
         WebReferencesFolderNode webReferencesFolderNode = new WebReferencesFolderNode(webReference.WebReferencesProjectItem);
         webReferencesFolderNode.FileNodeStatus = FileNodeStatus.InProject;
         webReferencesFolderNode.InsertSorted(projectNode);
         return(webReferencesFolderNode);
     }
     return(null);
 }
		public static DirectoryNode CreateDirectoryNode(ProjectItem item, FileNodeStatus status)
		{
			DirectoryNode node;
			if (item is WebReferencesProjectItem) {
				node = new WebReferencesFolderNode((WebReferencesProjectItem)item);
				node.FileNodeStatus = status;
			} else {
				node = new DirectoryNode(item.FileName.Trim('\\', '/'), status);
				node.ProjectItem = item;
			}
			return node;
		}
		public static DirectoryNode CreateDirectoryNode(TreeNode parent, IProject project, string directory)
		{
			DirectoryNode node = new DirectoryNode(directory);
			if (!string.IsNullOrEmpty(project.AppDesignerFolder)
			    && directory == Path.Combine(project.Directory, project.AppDesignerFolder))
			{
				node.SpecialFolder = SpecialFolder.AppDesigner;
			} else if (DirectoryNode.IsWebReferencesFolder(project, directory)) {
				node = new WebReferencesFolderNode(directory);
			} else if (parent != null && parent is WebReferencesFolderNode) {
				node = new WebReferenceNode(directory);
			}
			return node;
		}
Ejemplo n.º 7
0
        public static DirectoryNode CreateDirectoryNode(ProjectItem item, FileNodeStatus status)
        {
            DirectoryNode node;

            if (item is WebReferencesProjectItem)
            {
                node = new WebReferencesFolderNode((WebReferencesProjectItem)item);
                node.FileNodeStatus = status;
            }
            else
            {
                node             = new DirectoryNode(item.FileName.Trim('\\', '/'), status);
                node.ProjectItem = item;
            }
            return(node);
        }
Ejemplo n.º 8
0
        public static DirectoryNode CreateDirectoryNode(TreeNode parent, IProject project, string directory)
        {
            DirectoryNode node = new DirectoryNode(directory);

            if (!string.IsNullOrEmpty(project.AppDesignerFolder) &&
                directory == Path.Combine(project.Directory, project.AppDesignerFolder))
            {
                node.SpecialFolder = SpecialFolder.AppDesigner;
            }
            else if (DirectoryNode.IsWebReferencesFolder(project, directory))
            {
                node = new WebReferencesFolderNode(directory);
            }
            else if (parent != null && parent is WebReferencesFolderNode)
            {
                node = new WebReferenceNode(directory);
            }
            return(node);
        }
 public static WebReferenceNode GetWebReferenceNode(WebReferencesFolderNode webReferencesFolderNode)
 {
     foreach (AbstractProjectBrowserTreeNode node in webReferencesFolderNode.Nodes) {
         if (node is WebReferenceNode) {
             return (WebReferenceNode)node;
         }
     }
     return null;
 }