示例#1
0
		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);
				}
			}
		}
        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);
                }
            }
        }