Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void
コード例 #1
0
        private void batchReplaceEntireWorldWithSelectedBiomesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (world == null)
            {
                return;
            }

            Batch form = new Batch(world.GetRegionDirectory(dim), Path.GetFileName(world.WorldDir), dim.ToString(), true, cmbReplace1.SelectedItem, cmbReplace2.SelectedItem, world.Seed);

            form.ShowDialog(this);
            form.Dispose();
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: mblaine/BiomePainter
        private void batchReplaceEntireWorldWithSelectedBiomesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (world == null)
                return;

            Batch form = new Batch(world.GetRegionDirectory(dim), Path.GetFileName(world.WorldDir), dim.ToString(), true, cmbReplace1.SelectedItem, cmbReplace2.SelectedItem, world.Seed);
            form.ShowDialog(this);
            form.Dispose();
        }