Example #1
0
 private void loadFiles(TreeNode parent, IResourceFileGroup group)
 {
     foreach (IResourceFile file in group.Files.Values)
     {
         var fileNode = new ResourceFileTreeNode(file);
         fileNode.ContextMenuStrip   = this.contextMenuResxFile;
         fileNode.ImageIndex         = 2;
         fileNode.SelectedImageIndex = 2;
         parent.Nodes.Add(fileNode);
     }
 }
Example #2
0
        private void refreshFiles(ResourceFileGroupTreeNode parent)
        {
            var list = new List <IResourceFile>();

            foreach (ResourceFileTreeNode file in parent.Nodes)
            {
                list.Add(file.File);
            }

            foreach (IResourceFile file in parent.FileGroup.Files.Values.Except(list))
            {
                var fileNode = new ResourceFileTreeNode(file);
                fileNode.ContextMenuStrip   = this.contextMenuResxFile;
                fileNode.ImageIndex         = 2;
                fileNode.SelectedImageIndex = 2;
                parent.Nodes.Add(fileNode);
            }
        }
Example #3
0
        private void loadFileGroups(TreeNode parent, VSProject project)
        {
            foreach (IResourceFileGroup group in project.ResxGroups.Values)
            {
                var fileGroupNode = new ResourceFileGroupTreeNode(group);
                fileGroupNode.ImageIndex         = 1;
                fileGroupNode.SelectedImageIndex = 1;
                fileGroupNode.ContextMenuStrip   = this.contextFileGroup;
                parent.Nodes.Add(fileGroupNode);

                loadFiles(fileGroupNode, group);
            }

            foreach (IResourceFile file in project.UnassignedFiles)
            {
                var fileNode = new ResourceFileTreeNode(file);
                fileNode.ContextMenuStrip = this.contextMenuResxFile;

                parent.Nodes.Add(fileNode);
            }
        }
Example #4
0
        private void refreshFiles(ResourceFileGroupTreeNode parent)
        {
            var list = new List<IResourceFile>();

            foreach (ResourceFileTreeNode file in parent.Nodes)
            {
                list.Add(file.File);
            }

            foreach (IResourceFile file in parent.FileGroup.Files.Values.Except(list))
            {
                var fileNode = new ResourceFileTreeNode(file);
                fileNode.ContextMenuStrip = this.contextMenuResxFile;
                fileNode.ImageIndex = 2;
                fileNode.SelectedImageIndex = 2;
                parent.Nodes.Add(fileNode);
            }
        }
Example #5
0
 private void loadFiles(TreeNode parent, IResourceFileGroup group)
 {
     foreach (IResourceFile file in group.Files.Values)
     {
         var fileNode = new ResourceFileTreeNode(file);
         fileNode.ContextMenuStrip = this.contextMenuResxFile;
         fileNode.ImageIndex = 2;
         fileNode.SelectedImageIndex = 2;
         parent.Nodes.Add(fileNode);
     }
 }
Example #6
0
        private void loadFileGroups(TreeNode parent, VSProject project)
        {
            foreach (IResourceFileGroup group in project.ResxGroups.Values)
            {
                var fileGroupNode = new ResourceFileGroupTreeNode(group);
                fileGroupNode.ImageIndex = 1;
                fileGroupNode.SelectedImageIndex = 1;
                fileGroupNode.ContextMenuStrip = this.contextFileGroup;
                parent.Nodes.Add(fileGroupNode);

                loadFiles(fileGroupNode, group);
            }

            foreach (IResourceFile file in project.UnassignedFiles)
            {
                var fileNode = new ResourceFileTreeNode(file);
                fileNode.ContextMenuStrip = this.contextMenuResxFile;

                parent.Nodes.Add(fileNode);
            }
        }