public void RefreshScripts() { scriptsNode.Nodes.Clear(); foreach (Script script in editorControl.World.Scripts.Values) { if (!script.IsHidden) { ScriptTreeNode scriptNode = new ScriptTreeNode(script); scriptNode.ContextMenuStrip = editorControl.EditorForm.contextMenuScriptNode; scriptsNode.Nodes.Add(scriptNode); } } }