private void RemoveCurrentLevel() { _levelSet.RemoveAt(levelExplorerListBox.SelectedIndex); foreach (LevelEditorTabPage tabPage in rightTabControl.TabPages) { if (tabPage._level.Parent == null) { tabPage.Close(); } } }