private void OnButtonEditPaletteClick(object sender, EventArgs e) { Int32[] Palette = (Int32[])pars.GetValue("PALETTE"); EditPaletteDialog dia = new EditPaletteDialog(); dia.Palette = (Int32[])Palette.Clone(); if (dia.ShowDialog() == DialogResult.OK) { pars.SetValue("PALETTE", dia.Palette); CalcPreview(); } }
private void buttonPalett_Click(object sender, EventArgs e) { int[] Palette = (int[])frac.Parameters.GetValue("PALETTE"); EditPaletteDialog dia = new EditPaletteDialog(); dia.ColorCount = (int)frac.Parameters.GetValue("COLOR_COUNT"); dia.Palette = (int[])Palette.Clone(); if (dia.ShowDialog() == DialogResult.OK) { frac.Parameters.SetValue("PALETTE", dia.Palette); frac.Parameters.SetValue("COLOR_COUNT", dia.ColorCount); RenderFractal(true); } }