상속: MFTreeNodeBase
예제 #1
0
        public MFLibraryTreeNode(LibraryWrapper library, ref SortedDictionary<string, TreeNode> GroupsDict, ref SortedList<string, TreeNode> VoidGroupsList)
            : this(library)
        {
            List<BuildFileWrapper> source_list = new List<BuildFileWrapper>(this.Lib.FastCompileFiles);
            source_list.AddRange(this.Lib.HeaderFiles);
            source_list.AddRange(this.Lib.SourceFiles);

            //Dictionary<string, MFBuildFile> unic_source_list = new Dictionary<string, MFBuildFile>();
            //foreach (MFBuildFile source_file in source_list)
            //{
            //    unic_source_list.Add(source_file.File, source_file);
            //}
            AddFileList(new CollectionWrapper<BuildFileWrapper, MFBuildFile>(source_list), this.Lib.ProjectPath);

            if (! string.IsNullOrEmpty(this.Lib.Groups))
            {
                if (!GroupsDict.ContainsKey(this.Lib.Groups))
                {
                    MFTreeNodeBase GroupNode = new MFDirectoryTreeNode(Lib.Groups);//this.NewNode(lib.Groups, MFTreeNodeBase.TreeNodeType.Directory, MFTreeNodeBase.ImageKeysEnum.CollapsedDirectory);
                    GroupNode.Nodes.Add(this);
                    GroupsDict.Add(this.Lib.Groups, GroupNode);
                }
                else
                {
                    GroupsDict[this.Lib.Groups].Nodes.Add(this);
                }
            }
            else
            {
                VoidGroupsList.Add(this.Text, this);
            }
        }
예제 #2
0
        public MFLibraryTreeNode(LibraryWrapper library, ref SortedDictionary <string, TreeNode> GroupsDict, ref SortedList <string, TreeNode> VoidGroupsList)
            : this(library)
        {
            List <BuildFileWrapper> source_list = new List <BuildFileWrapper>(this.Lib.FastCompileFiles);
            source_list.AddRange(this.Lib.HeaderFiles);
            source_list.AddRange(this.Lib.SourceFiles);

            //Dictionary<string, MFBuildFile> unic_source_list = new Dictionary<string, MFBuildFile>();
            //foreach (MFBuildFile source_file in source_list)
            //{
            //    unic_source_list.Add(source_file.File, source_file);
            //}
            AddFileList(new CollectionWrapper <BuildFileWrapper, MFBuildFile>(source_list), this.Lib.ProjectPath);

            if (!string.IsNullOrEmpty(this.Lib.Groups))
            {
                if (!GroupsDict.ContainsKey(this.Lib.Groups))
                {
                    MFTreeNodeBase GroupNode = new MFDirectoryTreeNode(Lib.Groups);//this.NewNode(lib.Groups, MFTreeNodeBase.TreeNodeType.Directory, MFTreeNodeBase.ImageKeysEnum.CollapsedDirectory);
                    GroupNode.Nodes.Add(this);
                    GroupsDict.Add(this.Lib.Groups, GroupNode);
                }
                else
                {
                    GroupsDict[this.Lib.Groups].Nodes.Add(this);
                }
            }
            else
            {
                VoidGroupsList.Add(this.Text, this);
            }
        }
예제 #3
0
 public MFFeatureTreeNode(FeatureWrapper feature, ref SortedDictionary<string, TreeNode> GroupsDict, ref SortedList<string, TreeNode> VoidGroupsList)
     : this(feature)
 {
     if (!string.IsNullOrEmpty(feature.Groups))
     {
         if (!GroupsDict.ContainsKey(this.Feat.Groups))
         {
             MFTreeNodeBase GroupNode = new MFDirectoryTreeNode(this.Feat.Groups);//this.NewNode(this.Feat.Groups, MFTreeNodeBase.TreeNodeType.Directory, MFTreeNodeBase.ImageKeysEnum.CollapsedDirectory);
             GroupNode.Nodes.Add(this);
             GroupsDict.Add(this.Feat.Groups, GroupNode);
         }
         else
         {
             GroupsDict[this.Feat.Groups].Nodes.Add(this);
         }
     }
     else
     {
         VoidGroupsList.Add(this.Text, this);
     }
 }
예제 #4
0
 public MFLibCatTreeNode(LibraryCategoryWrapper libcat, ref SortedDictionary <string, TreeNode> GroupsDict, ref SortedList <string, TreeNode> VoidGroupsList)
     : this(libcat)
 {
     if (!string.IsNullOrEmpty(LibCat.Groups))
     {
         if (!GroupsDict.ContainsKey(LibCat.Groups))
         {
             MFTreeNodeBase GroupNode = new MFDirectoryTreeNode(LibCat.Groups);//this.NewNode(cat.Groups, MFTreeNodeBase.TreeNodeType.Directory, MFTreeNodeBase.ImageKeysEnum.CollapsedDirectory);
             GroupNode.Nodes.Add(this);
             GroupsDict.Add(LibCat.Groups, GroupNode);
         }
         else
         {
             GroupsDict[LibCat.Groups].Nodes.Add(this);
         }
     }
     else
     {
         VoidGroupsList.Add(this.Text, this);
     }
 }
예제 #5
0
 public MFFeatureTreeNode(FeatureWrapper feature, ref SortedDictionary <string, TreeNode> GroupsDict, ref SortedList <string, TreeNode> VoidGroupsList)
     : this(feature)
 {
     if (!string.IsNullOrEmpty(feature.Groups))
     {
         if (!GroupsDict.ContainsKey(this.Feat.Groups))
         {
             MFTreeNodeBase GroupNode = new MFDirectoryTreeNode(this.Feat.Groups);//this.NewNode(this.Feat.Groups, MFTreeNodeBase.TreeNodeType.Directory, MFTreeNodeBase.ImageKeysEnum.CollapsedDirectory);
             GroupNode.Nodes.Add(this);
             GroupsDict.Add(this.Feat.Groups, GroupNode);
         }
         else
         {
             GroupsDict[this.Feat.Groups].Nodes.Add(this);
         }
     }
     else
     {
         VoidGroupsList.Add(this.Text, this);
     }
 }
예제 #6
0
        public MFLibCatTreeNode(LibraryCategoryWrapper libcat, ref SortedDictionary<string, TreeNode> GroupsDict, ref SortedList<string, TreeNode> VoidGroupsList)
            : this (libcat)
        {

            if (!string.IsNullOrEmpty(LibCat.Groups))
            {
                if (!GroupsDict.ContainsKey(LibCat.Groups))
                {
                    MFTreeNodeBase GroupNode = new MFDirectoryTreeNode(LibCat.Groups);//this.NewNode(cat.Groups, MFTreeNodeBase.TreeNodeType.Directory, MFTreeNodeBase.ImageKeysEnum.CollapsedDirectory);
                    GroupNode.Nodes.Add(this);
                    GroupsDict.Add(LibCat.Groups, GroupNode);
                }
                else
                {
                    GroupsDict[LibCat.Groups].Nodes.Add(this);
                }
            }
            else
            {
                VoidGroupsList.Add(this.Text, this);
            }

        }