Example #1
0
 private void InitializeTree()
 {
   DirectoryInfo scriptsDirectory = Global.ScriptManager.ScriptsDirectory;
   ScriptRootNode scriptRootNode = new ScriptRootNode(scriptsDirectory);
   scriptRootNode.ContextMenuStrip = this.ctxDirectoryNode;
   scriptRootNode.Expand();
   this.treeView.Nodes.Add((TreeNode) scriptRootNode);
   this.MapDirectory(scriptsDirectory, (TreeNode) scriptRootNode);
 }
        private void InitializeTree()
        {
            DirectoryInfo  scriptsDirectory = Global.ScriptManager.ScriptsDirectory;
            ScriptRootNode scriptRootNode   = new ScriptRootNode(scriptsDirectory);

            scriptRootNode.ContextMenuStrip = this.ctxDirectoryNode;
            scriptRootNode.Expand();
            this.treeView.Nodes.Add((TreeNode)scriptRootNode);
            this.MapDirectory(scriptsDirectory, (TreeNode)scriptRootNode);
        }