Inheritance: IDisposable
コード例 #1
0
ファイル: Form1.cs プロジェクト: mblaine/BiomePainter
 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");
 }
コード例 #2
0
ファイル: Form1.cs プロジェクト: mblaine/BiomePainter
        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");
        }