public void CloseLevel() { level = null; editorForm.LevelDisplay.UpdateLevel(); UpdateWindowTitle(); PropertyGrid.CloseProperties(); }
// Close the world file. public void CloseFile() { if (IsWorldOpen) { PropertyGrid.CloseProperties(); world = null; level = null; hasMadeChanges = false; worldFilePath = ""; RefreshWorldTreeView(); } }