private void поисковикToolStripMenuItem1_Click(object sender, EventArgs e) { RotationWidnow rw = new RotationWidnow(); if (rw.ShowDialog(this) != DialogResult.Yes) { return; } JuliaSearcher js = new JuliaSearcher(new IncisionOf3DJulia(rw.Rotater), new IncisionOf3DMandelbrot(rw.Rotater), new CosColorMode(), new CycleGradientColorMode()); if (js.ShowDialog(this) != DialogResult.Yes) { return; } if (CustomIncisionJulia == null) { CustomIncisionJulia = new FractalDataHandler(this, new IncisionOf3DJulia(rw.Rotater, 40, -1.5, 1.5, -1.1, 1.1, js.Complex), MainFractalPictureBox, new CosColorMode(), new Size(960, 640), FractalControler); CustomIncisionJulia.ConnectToolStripProgressBar(toolStripProgressBar1); CustomIncisionJulia.ConnectShowToMenuItem(разрезТрёхмерногоВариантаToolStripMenuItem1, FractalControler, 32, 32); CustomIncisionJulia.ConntectToStatusLabel(toolStripStatusLabel1); CustomIncisionJulia.Show(); } else { CustomIncisionJulia.SetNewFractal(new IncisionOf3DJulia(rw.Rotater, 40, -1.5, 1.5, -1.1, 1.1, js.Complex), js.FractalColorMode); CustomIncisionJulia.Reset(960, 640); } }
private void искатьЖюлиаToolStripMenuItem_Click(object sender, EventArgs e) { JuliaSearcher js = new JuliaSearcher(); if (js.ShowDialog(this) != DialogResult.Yes) { return; } if (CustomJulia == null) { CustomJulia = new FractalDataHandler(this, js.Julia, MainFractalPictureBox, js.FractalColorMode, new Size(960, 640), FractalControler); CustomJulia.ConnectToolStripProgressBar(toolStripProgressBar1); CustomJulia.ConnectShowToMenuItem(искатьЖюлиаToolStripMenuItem, FractalControler, 32, 32); CustomJulia.ConntectToStatusLabel(toolStripStatusLabel1); } else { CustomJulia.SetNewFractal(js.Julia, js.FractalColorMode); } //CustomJulia.Fractal = js.Julia; CustomJulia.FractalColorMode = js.FractalColorMode; } CustomJulia.Reset(960, 640); }
private void выбратьШаблонToolStripMenuItem_Click(object sender, EventArgs e) { TemplatesViewer tw = new TemplatesViewer(fractalTemplates); if (tw.ShowDialog(this) != DialogResult.Yes) { return; } if (Template == null) { Template = new FractalDataHandler(this, tw.selectedtemplate.Fractal, MainFractalPictureBox, tw.selectedtemplate.FractalColorMode, new Size(960, 640), FractalControler); Template.ConnectToolStripProgressBar(toolStripProgressBar1); Template.ReShow(960, 640, 0, 0, 60, 60); Template.ConnectShowToMenuItem(посмотретьСохранённыеШаблоныToolStripMenuItem, FractalControler, 32, 32); Template.ConntectToStatusLabel(toolStripStatusLabel1); } else { Template.SetNewFractal(tw.selectedtemplate.Fractal, tw.selectedtemplate.FractalColorMode); Template.ReShow(960, 640, 0, 0, 60, 60); } }