//----------------------------------------------------------------------------- // Tree Refresh Methods //----------------------------------------------------------------------------- public void RefreshLevels() { levelsNode.Nodes.Clear(); World world = editorControl.World; for (int i = 0; i < world.Levels.Count; i++) { TreeNode levelNode = new LevelTreeNode(world.Levels[i]); levelNode.ContextMenuStrip = editorControl.EditorForm.contextMenuLevelSelect; levelsNode.Nodes.Add(levelNode); } }