Ejemplo n.º 1
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);
            }
        }
Ejemplo n.º 2
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);
            }
        }
Ejemplo n.º 3
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);
            }
        }
Ejemplo n.º 4
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);
            }
        }