void worldChanged(object sender, EventArgs e) { layersPanel.SelectedWorld = OpenWorld; tilesetsPanel.SelectedWorld = OpenWorld; zoomSlider.Enabled = false; if (OpenWorld != null) { zoomSlider.Enabled = true; } if (SelectedTool != null) { SelectedTool.OnWorldChange(); } }