private void ResetControls() { lstRegions.Items.Clear(); lastSelectedRegionIndex = -1; trackMagnification.Value = 1; lblMagnification.Text = "Magnification: 1x"; imgRegion.Reset(); region = null; dim = Dimension.Overworld; overworldToolStripMenuItem.Checked = true; netherToolStripMenuItem.Checked = false; endToolStripMenuItem.Checked = false; if (history != null) history.Dispose(); history = new HistoryManager(HistoryChange); history.RecordSelectionState(imgRegion.Layers[SELECTIONLAYER].Image, "Initial State"); }
private void Form1_Load(object sender, EventArgs e) { menuRedrawTerrainMap.Checked = Settings.RedrawTerrainMap; menuBiomeFoliage.Checked = Settings.BiomeFoliage; menuTransparency.Checked = Settings.Transparency; FillRecentWorldsList(); RegionUtil.RenderChunkBoundaries(imgRegion.Layers[CHUNKLAYER].Image); FillLists(); ColorPalette.Preload(); //matters to multi-threaded chunk rendering history = new HistoryManager(HistoryChange); history.RecordSelectionState(imgRegion.Layers[SELECTIONLAYER].Image, "Initial Selection"); }