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); } }
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); } }