public static TreeNode AddWebReference(WebReferencesFolderNode webReferencesFolderNode, WebReference webReference)
		{
			WebReferenceNode node = new WebReferenceNode(webReference);
			node.FileNodeStatus = FileNodeStatus.InProject;
			node.InsertSorted(webReferencesFolderNode);
			return node;
		}
Esempio 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 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;
		}
Esempio n. 4
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);
        }