private void VisualColorControler_Load(object sender, EventArgs e)
        {
            GlobalTemplates.SetTemplate(comboBox1, "Шрифт окна для настройки цветового режима");
            GlobalTemplates.SetTemplate(button1, "Шрифт окна для настройки цветового режима");
            int width_difference = this.Width - panel1.Width, height_difference = this.Height - panel1.Height, x_pos_difference = this.Width - panel2.Location.X, _2heigth_difference = this.Height - panel2.Height;

            SizeChanged += (_sender, _e) => { panel1.Size        = new Size(this.Width - width_difference, this.Height - height_difference);
                                              panel2.Location    = new Point(this.Width - x_pos_difference, panel2.Location.Y);
                                              comboBox1.Location = new Point(this.Width - x_pos_difference, comboBox1.Location.Y);
                                              panel2.Size        = new Size(panel2.Width, this.Height - _2heigth_difference); };
            _fractal_picture_box = new FractalPictureBox();
            _fractal_picture_box.ContextMenuStrip = contextMenuStrip1;
            panel1.Controls.Add(_fractal_picture_box);
            _fractal_picture_box.SizeMode = PictureBoxSizeMode.AutoSize;
            _fractal_picture_box.Visible  = true;
            ConnectFractalToClass(_fractal);
            _fractal_picture_box.SelectionPen = null;
            _fractal.CreateParallelFractal(panel1.Width, panel1.Height, 0, 0, _old_width, _old_height);
            panel2.Controls.Add(FractalColorMode.GetUniqueInterface(panel2.Width, panel2.Height));
            fcm_list            = new List <FractalColorMode>();
            compatible_fcm_list = new List <FractalColorMode>();
            //list_up(FractalColorMode);
            comboBox1.SelectedIndexChanged += (_sender, _e) => { FractalColorMode = (FractalColorMode)comboBox1.SelectedItem; Visualizate();
                                                                 panel2.Controls.Clear();
                                                                 panel2.Controls.Add(FractalColorMode.GetUniqueInterface(panel2.Width, panel2.Height)); };
            comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            if (_fap != null)
            {
                Visualizate();
            }
            //DrawFractalParallel();
        }
 /*__________________________________________________________Конструкторы_класса_________________________________________________________________*/
 #region Constructors
 public FractalDataHandler(Control Owner,Fractal Fractal,FractalPictureBox FPB,FractalColorMode FCM,Size Size,FractalAssociationParametrs FAP=null)
 {
     if (Owner==null||Fractal == null || FPB == null || FCM == null) throw new ArgumentNullException("Нельзя передавать пустые значения!");
     if (Size.Width < 1 || Size.Height < 1) throw new ArgumentException("Ширина и Высота не могут быть меньше единицы!");
     _fractal = Fractal;
     _fpb = FPB;
     _fcm = FCM;
     _width = Size.Width;
     _height = Size.Height;
     _fap = FAP;
     _owner=Owner;
     Connect();
 }
 /*__________________________________________________________Конструкторы_класса_________________________________________________________________*/
 #region Constructors
 public FractalDataHandler(Control Owner, Fractal Fractal, FractalPictureBox FPB, FractalColorMode FCM, Size Size, FractalAssociationParametrs FAP = null)
 {
     if (Owner == null || Fractal == null || FPB == null || FCM == null)
     {
         throw new ArgumentNullException("Нельзя передавать пустые значения!");
     }
     if (Size.Width < 1 || Size.Height < 1)
     {
         throw new ArgumentException("Ширина и Высота не могут быть меньше единицы!");
     }
     _fractal = Fractal;
     _fpb     = FPB;
     _fcm     = FCM;
     _width   = Size.Width;
     _height  = Size.Height;
     _fap     = FAP;
     _owner   = Owner;
     Connect();
 }
 private void JuliaSearcher_Load(object sender, EventArgs e)
 {
     fpb1                  = new FractalPictureBox();
     fpb1.SizeMode         = PictureBoxSizeMode.AutoSize;
     fpb1.ContextMenuStrip = contextMenuStrip1;
     if (_m_fcm == null)
     {
         _m_fcm = new Simple2DFractalColorMode();
     }
     panel1.Controls.Add(fpb1);
     fpb1.ToClickMode();
     if (_mandelbrot == null)
     {
         _mandelbrot = new Mandelbrot();
     }
     _m_fap          = _mandelbrot.CreateFractal(panel1.Width, panel1.Height);
     fpb1.Image      = _m_fcm.GetDrawnBitmap(_m_fap);
     fpb1.MouseMove += (_sender, _e) => { label1.Text = _get_complex_loc(_mandelbrot, _e.X, _e.Y).ToString(); };
     fpb2            = new FractalPictureBox();
     fpb2.SizeMode   = PictureBoxSizeMode.AutoSize;
     panel2.Controls.Add(fpb2);
     fpb1.MouseDown += (_sender, _e) =>
     {
         if (!clickable)
         {
             return;
         }
         if (_e.Button != MouseButtons.Left)
         {
             return;
         }
         _using_complex = _get_complex_loc(_mandelbrot, _e.X, _e.Y);
         label2.Text    = _using_complex.ToString();
         _julia.SetComplex(_using_complex);
         fpb2.Image = _j_fcm.GetDrawnBitmap(((_2DFractal)_julia).CreateFractal(panel2.Width, panel2.Height));
     };
     fpb2.RectangleSelected += (_sender, rec) =>
     {
         ((_2DFractal)_julia).CreateParallelFractal(panel2.Width, panel2.Height, rec.X, rec.Y, rec.Width, rec.Height, true);
     };
     ((_2DFractal)_julia).ParallelFractalCreatingFinished += (s, fap) =>
     {
         Action <Bitmap> act = (bmp) => { fpb2.Image = bmp; };
         Invoke(act, _j_fcm.GetDrawnBitmap(fap));
     };
     fpb2.SelectionPen       = null;
     fpb1.RectangleSelected += (_s, rec) => {
         _mandelbrot.CreateParallelFractal(panel1.Width, panel1.Height, rec.X, rec.Y, rec.Width, rec.Height, true);
     };
     _mandelbrot.ParallelFractalCreatingFinished += (s, fap) =>
     {
         Action <Bitmap> act = (bmp) => { fpb1.Image = bmp; };
         Invoke(act, _m_fcm.GetDrawnBitmap(fap));
     };
     fpb2.ContextMenuStrip = contextMenuStrip2;
     fpb1.SelectionPen     = null;
     clickable             = true;
     _fpb1_h_scale         = this.Width / (double)panel1.Width;
     _fpb1_v_scale         = this.Height / (double)panel1.Height;
     _fpb2_h_scale         = this.Width / (double)panel2.Width;
     _fpb2_v_scale         = this.Height / (double)panel2.Height;
     oldheight             = panel1.Height;
     oldwidth = panel1.Width;
     вРежимВращенияToolStripMenuItem.Visible = вРежимВращенияToolStripMenuItem.Enabled = _mandelbrot is IUsingQuaternion;
 }
示例#5
0
 public void ConnectFractalToPictureBox(FractalPictureBox fpb)
 {
 }
示例#6
0
 public void ConnectFractalToPictureBox(FractalPictureBox fpb)
 {
 }
 private void JuliaSearcher_Load(object sender, EventArgs e)
 {
     fpb1 = new FractalPictureBox();
     fpb1.SizeMode = PictureBoxSizeMode.AutoSize;
     fpb1.ContextMenuStrip = contextMenuStrip1;
     if(_m_fcm==null)_m_fcm = new Simple2DFractalColorMode();
     panel1.Controls.Add(fpb1);
     fpb1.ToClickMode();
     if(_mandelbrot==null)_mandelbrot = new Mandelbrot();
     _m_fap = _mandelbrot.CreateFractal(panel1.Width, panel1.Height);
     fpb1.Image = _m_fcm.GetDrawnBitmap(_m_fap);
     fpb1.MouseMove += (_sender, _e) => {label1.Text = _get_complex_loc(_mandelbrot,_e.X,_e.Y).ToString(); };
     fpb2 = new FractalPictureBox();
     fpb2.SizeMode = PictureBoxSizeMode.AutoSize;
     panel2.Controls.Add(fpb2);
     fpb1.MouseDown += (_sender, _e) =>
     {
         if (!clickable) return;
         if (_e.Button != MouseButtons.Left) return;
         _using_complex = _get_complex_loc(_mandelbrot, _e.X, _e.Y);
         label2.Text=_using_complex.ToString();
         _julia.SetComplex(_using_complex);
         fpb2.Image = _j_fcm.GetDrawnBitmap(((_2DFractal)_julia).CreateFractal(panel2.Width, panel2.Height));
     };
     fpb2.RectangleSelected += (_sender, rec) =>
     {
         ((_2DFractal)_julia).CreateParallelFractal(panel2.Width, panel2.Height, rec.X, rec.Y, rec.Width, rec.Height, true);
     };
     ((_2DFractal)_julia).ParallelFractalCreatingFinished += (s, fap) =>
     {
     Action<Bitmap> act=(bmp)=>{fpb2.Image=bmp;};
     Invoke(act, _j_fcm.GetDrawnBitmap(fap));
     };
     fpb2.SelectionPen = null;
     fpb1.RectangleSelected += (_s, rec) => {
         _mandelbrot.CreateParallelFractal(panel1.Width, panel1.Height, rec.X, rec.Y, rec.Width, rec.Height,true);
     };
     _mandelbrot.ParallelFractalCreatingFinished += (s, fap) =>
     {
         Action<Bitmap> act = (bmp) => { fpb1.Image = bmp; };
         Invoke(act, _m_fcm.GetDrawnBitmap(fap));
     };
     fpb2.ContextMenuStrip = contextMenuStrip2;
     fpb1.SelectionPen = null;
     clickable = true;
     _fpb1_h_scale = this.Width / (double)panel1.Width;
     _fpb1_v_scale = this.Height / (double)panel1.Height;
     _fpb2_h_scale = this.Width / (double)panel2.Width;
     _fpb2_v_scale = this.Height / (double)panel2.Height;
     oldheight = panel1.Height;
     oldwidth = panel1.Width;
     вРежимВращенияToolStripMenuItem.Visible = вРежимВращенияToolStripMenuItem.Enabled = _mandelbrot is IUsingQuaternion;
 }
示例#8
0
 private void MainForm_Load(object sender, EventArgs e)
 {
     FractalControler = new FractalDataHandlerControler();
     MainFractalPictureBox = new FractalPictureBox();
     MainFractalPictureBox.SizeMode = PictureBoxSizeMode.AutoSize;
     MainPanel.Controls.Add(MainFractalPictureBox);
     #region Julia creating
     FirstJulia = new FractalDataHandler(this, new JuliaWithClouds(FractalStaticData.RecomendJuliaIterationsCount, -1.523D, 1.523D, -0.9D, 0.9D, new Complex(-0.8D, 0.156D)),MainFractalPictureBox,new My2DClassicColorMode(),new Size(960,640),FractalControler);
     FirstJulia.ConnectToolStripProgressBar(toolStripProgressBar1);
     FirstJulia.ConnectShowToMenuItem(первыйФракталToolStripMenuItem, FractalControler,32,32);
     FirstJulia.ConnectStandartResetToMenuItem(новыйСтандартногоРазмераToolStripMenuItem, FractalControler);
     FirstJulia.ConnectResetWithSizeFromWindowToMenuItem(новыйСЗаданнымРазмеромToolStripMenuItem, FractalControler);
     FirstJulia.ConntectToStatusLabel(toolStripStatusLabel1);
     SecondJulia = new FractalDataHandler(this, new JuliaWithClouds(FractalStaticData.RecomendJuliaIterationsCount, -0.91D, 0.91D, -1.12D, 1.12D, new Complex(0.285D, 0.0126D)), MainFractalPictureBox, new My2DClassicColorMode(), new Size(960, 640), FractalControler);
     SecondJulia.ConnectToolStripProgressBar(toolStripProgressBar1);
     SecondJulia.ConnectShowToMenuItem(второйФракталToolStripMenuItem, FractalControler,32,32);
     SecondJulia.ConnectStandartResetToMenuItem(новыйСтандартногоРазмераToolStripMenuItem1,FractalControler);
     SecondJulia.ConnectResetWithSizeFromWindowToMenuItem(новыйСЗаданнымРазмеромToolStripMenuItem1,FractalControler);
     SecondJulia.ConntectToStatusLabel(toolStripStatusLabel1);
     ThirdJulia = new FractalDataHandler(this, new JuliaWithClouds(FractalStaticData.RecomendJuliaIterationsCount, -1.35D, 1.35D, -1.12D, 1.12D, new Complex(-0.0085D, 0.71D)), MainFractalPictureBox, new My2DClassicColorMode(1.1D, 1.1D, 1.1D), new Size(960, 640), FractalControler);
     ThirdJulia.ConnectToolStripProgressBar(toolStripProgressBar1);
     ThirdJulia.ConnectShowToMenuItem(третийToolStripMenuItem, FractalControler, 32, 32);
     ThirdJulia.ConnectStandartResetToMenuItem(новыйСтандартногоРазмераToolStripMenuItem2, FractalControler);
     ThirdJulia.ConnectResetWithSizeFromWindowToMenuItem(новыйСЗаданнымРазмеромToolStripMenuItem2,FractalControler);
     ThirdJulia.ConntectToStatusLabel(toolStripStatusLabel1);
     FourthJulia = new FractalDataHandler(this, new JuliaWithClouds(FractalStaticData.RecomendJuliaIterationsCount, -0.88D, 0.88D, -1.12D, 1.12D, new Complex(0.285D, 0.01D)), MainFractalPictureBox, new My2DClassicColorMode(), new Size(960, 640), FractalControler);
     FourthJulia.ConnectToolStripProgressBar(toolStripProgressBar1);
     FourthJulia.ConnectShowToMenuItem(четвёртыйФракталToolStripMenuItem, FractalControler, 32, 32);
     FourthJulia.ConnectStandartResetToMenuItem(новыйСтандартногоРазмераToolStripMenuItem3, FractalControler);
     FourthJulia.ConnectResetWithSizeFromWindowToMenuItem(новыйСЗаданнымРазмеромToolStripMenuItem3, FractalControler);
     FourthJulia.ConntectToStatusLabel(toolStripStatusLabel1);
     FifthJulia = new FractalDataHandler(this, new JuliaWithClouds(FractalStaticData.RecomendJuliaIterationsCount, -1.505D, 1.505D, -0.9D, 0.9D, new Complex(-0.74534D, 0.11301D)), MainFractalPictureBox, new My2DClassicColorMode(), new Size(960, 640), FractalControler);
     FifthJulia.ConnectToolStripProgressBar(toolStripProgressBar1);
     FifthJulia.ConnectShowToMenuItem(пятыйФракталToolStripMenuItem, FractalControler, 32, 32);
     FifthJulia.ConnectStandartResetToMenuItem(новыйСтандартногоРазмераToolStripMenuItem4, FractalControler);
     FifthJulia.ConnectResetWithSizeFromWindowToMenuItem(новыйСЗаданнымРазмеромToolStripMenuItem4, FractalControler);
     FifthJulia.ConntectToStatusLabel(toolStripStatusLabel1);
     SixthJulia = new FractalDataHandler(this, new JuliaWithClouds(FractalStaticData.RecomendJuliaIterationsCount, -1.5D, 1.5D, -1D, 1D, new Complex(-0.75D,-0.03125D)), MainFractalPictureBox, new Simple2DFractalColorMode(), new Size(960, 640),FractalControler);
     SixthJulia.ConnectShowToMenuItem(шестойФракталToolStripMenuItem, FractalControler, 32, 32);
     SixthJulia.ConnectStandartResetToMenuItem(новыйСтандартногоРазмераToolStripMenuItem7, FractalControler);
     SixthJulia.ConnectResetWithSizeFromWindowToMenuItem(новыйСЗаданнымРазмеромToolStripMenuItem7, FractalControler);
     SixthJulia.ConntectToStatusLabel(toolStripStatusLabel1);
     SixthJulia.ConnectToolStripProgressBar(toolStripProgressBar1);
     #endregion /Julia creating
     MandelbrotHandler = new FractalDataHandler(this, new MandelbrotWithClouds(), MainFractalPictureBox, new CosColorMode(), new Size(960, 640), FractalControler);
     MandelbrotHandler.ConnectToolStripProgressBar(toolStripProgressBar1);
     MandelbrotHandler.ConnectShowToMenuItem(обыкновенныйToolStripMenuItem,FractalControler,32,32);
     MandelbrotHandler.ConnectStandartResetToMenuItem(новыйСтандартногоРазмераToolStripMenuItem5, FractalControler);
     MandelbrotHandler.ConnectResetWithSizeFromWindowToMenuItem(новыйСЗаданнымРазмеромToolStripMenuItem5,FractalControler);
     MandelbrotHandler.ConntectToStatusLabel(toolStripStatusLabel1);
     AmoebaLasVegas = new FractalDataHandler(this, new AmoebaLasVegas(), MainFractalPictureBox, new TrioArgsCosColorMode(), new Size(900, 900),FractalControler);
     AmoebaLasVegas.ConnectToolStripProgressBar(toolStripProgressBar1);
     AmoebaLasVegas.ConnectShowToMenuItem(amoebaLasVegasToolStripMenuItem,FractalControler,16,16);
     AmoebaLasVegas.ConnectStandartResetToMenuItem(новыйСтандартногоРазмераToolStripMenuItem8, FractalControler);
     AmoebaLasVegas.ConntectToStatusLabel(toolStripStatusLabel1);
     _differenсe_in_width = this.Width - MainPanel.Width;
     _difference_in_height = this.Height - MainPanel.Height;
     FractalDataHandler.UseSafeZoom = true;
     FractalDataHandler.MaxGlobalPercent = toolStripProgressBar1.Maximum;
     MainFractalPictureBox.OpenMenuEvent += () => { contextMenuStrip1.Show(Cursor.Position); };
     MainFractalPictureBox.SelectionPen = null;
     fractalTemplates = FractalTemplates.LoadFromFile(FileToSave);
     #region GlobalTemplates
     GlobalTemplates.Initializate(FileToGlobalTemplates);
     GlobalTemplates.AddDefaultTemplate("Шрифт меню главного окна", Color.Black, menuStrip1.Font);
     GlobalTemplates.AddDefaultTemplate("Шрифт окна с шаблонами", Color.Black, new Font("Microsoft Sans Serif", 12.25f));
     GlobalTemplates.AddDefaultTemplate("Шрифт окна для настройки цветового режима", Color.Black, new Font("Microsoft sans serif", 12.25f));
     GlobalTemplates.AddDefaultTemplate("Шрифт окна для ввода фрактала джулии", Color.Black, new Font("Microsoft sans serif", 12.35f));
     GlobalTemplates.AddDefaultTemplate("Шрифт окна для ввода нового разрешения", Color.Black, new Font("Microsoft sans serif", 12.35f));
     GlobalTemplates.AddDefaultTemplate("Шрифт окна вращения фрактала",Color.Black,new Font("Microsoft sans serif", 12.35f));
     GlobalTemplates.SetTemplate(menuStrip1, "Шрифт меню главного окна");
     this.FormClosing += (s, _e) => { GlobalTemplates.SaveTemplates(FileToGlobalTemplates); };
     #endregion /GlobalTemplates
 }
示例#9
0
 private void MainForm_Load(object sender, EventArgs e)
 {
     FractalControler               = new FractalDataHandlerControler();
     MainFractalPictureBox          = new FractalPictureBox();
     MainFractalPictureBox.SizeMode = PictureBoxSizeMode.AutoSize;
     MainPanel.Controls.Add(MainFractalPictureBox);
     #region Julia creating
     FirstJulia = new FractalDataHandler(this, new JuliaWithClouds(FractalStaticData.RecomendJuliaIterationsCount, -1.523D, 1.523D, -0.9D, 0.9D, new Complex(-0.8D, 0.156D)), MainFractalPictureBox, new My2DClassicColorMode(), new Size(960, 640), FractalControler);
     FirstJulia.ConnectToolStripProgressBar(toolStripProgressBar1);
     FirstJulia.ConnectShowToMenuItem(первыйФракталToolStripMenuItem, FractalControler, 32, 32);
     FirstJulia.ConnectStandartResetToMenuItem(новыйСтандартногоРазмераToolStripMenuItem, FractalControler);
     FirstJulia.ConnectResetWithSizeFromWindowToMenuItem(новыйСЗаданнымРазмеромToolStripMenuItem, FractalControler);
     FirstJulia.ConntectToStatusLabel(toolStripStatusLabel1);
     SecondJulia = new FractalDataHandler(this, new JuliaWithClouds(FractalStaticData.RecomendJuliaIterationsCount, -0.91D, 0.91D, -1.12D, 1.12D, new Complex(0.285D, 0.0126D)), MainFractalPictureBox, new My2DClassicColorMode(), new Size(960, 640), FractalControler);
     SecondJulia.ConnectToolStripProgressBar(toolStripProgressBar1);
     SecondJulia.ConnectShowToMenuItem(второйФракталToolStripMenuItem, FractalControler, 32, 32);
     SecondJulia.ConnectStandartResetToMenuItem(новыйСтандартногоРазмераToolStripMenuItem1, FractalControler);
     SecondJulia.ConnectResetWithSizeFromWindowToMenuItem(новыйСЗаданнымРазмеромToolStripMenuItem1, FractalControler);
     SecondJulia.ConntectToStatusLabel(toolStripStatusLabel1);
     ThirdJulia = new FractalDataHandler(this, new JuliaWithClouds(FractalStaticData.RecomendJuliaIterationsCount, -1.35D, 1.35D, -1.12D, 1.12D, new Complex(-0.0085D, 0.71D)), MainFractalPictureBox, new My2DClassicColorMode(1.1D, 1.1D, 1.1D), new Size(960, 640), FractalControler);
     ThirdJulia.ConnectToolStripProgressBar(toolStripProgressBar1);
     ThirdJulia.ConnectShowToMenuItem(третийToolStripMenuItem, FractalControler, 32, 32);
     ThirdJulia.ConnectStandartResetToMenuItem(новыйСтандартногоРазмераToolStripMenuItem2, FractalControler);
     ThirdJulia.ConnectResetWithSizeFromWindowToMenuItem(новыйСЗаданнымРазмеромToolStripMenuItem2, FractalControler);
     ThirdJulia.ConntectToStatusLabel(toolStripStatusLabel1);
     FourthJulia = new FractalDataHandler(this, new JuliaWithClouds(FractalStaticData.RecomendJuliaIterationsCount, -0.88D, 0.88D, -1.12D, 1.12D, new Complex(0.285D, 0.01D)), MainFractalPictureBox, new My2DClassicColorMode(), new Size(960, 640), FractalControler);
     FourthJulia.ConnectToolStripProgressBar(toolStripProgressBar1);
     FourthJulia.ConnectShowToMenuItem(четвёртыйФракталToolStripMenuItem, FractalControler, 32, 32);
     FourthJulia.ConnectStandartResetToMenuItem(новыйСтандартногоРазмераToolStripMenuItem3, FractalControler);
     FourthJulia.ConnectResetWithSizeFromWindowToMenuItem(новыйСЗаданнымРазмеромToolStripMenuItem3, FractalControler);
     FourthJulia.ConntectToStatusLabel(toolStripStatusLabel1);
     FifthJulia = new FractalDataHandler(this, new JuliaWithClouds(FractalStaticData.RecomendJuliaIterationsCount, -1.505D, 1.505D, -0.9D, 0.9D, new Complex(-0.74534D, 0.11301D)), MainFractalPictureBox, new My2DClassicColorMode(), new Size(960, 640), FractalControler);
     FifthJulia.ConnectToolStripProgressBar(toolStripProgressBar1);
     FifthJulia.ConnectShowToMenuItem(пятыйФракталToolStripMenuItem, FractalControler, 32, 32);
     FifthJulia.ConnectStandartResetToMenuItem(новыйСтандартногоРазмераToolStripMenuItem4, FractalControler);
     FifthJulia.ConnectResetWithSizeFromWindowToMenuItem(новыйСЗаданнымРазмеромToolStripMenuItem4, FractalControler);
     FifthJulia.ConntectToStatusLabel(toolStripStatusLabel1);
     SixthJulia = new FractalDataHandler(this, new JuliaWithClouds(FractalStaticData.RecomendJuliaIterationsCount, -1.5D, 1.5D, -1D, 1D, new Complex(-0.75D, -0.03125D)), MainFractalPictureBox, new Simple2DFractalColorMode(), new Size(960, 640), FractalControler);
     SixthJulia.ConnectShowToMenuItem(шестойФракталToolStripMenuItem, FractalControler, 32, 32);
     SixthJulia.ConnectStandartResetToMenuItem(новыйСтандартногоРазмераToolStripMenuItem7, FractalControler);
     SixthJulia.ConnectResetWithSizeFromWindowToMenuItem(новыйСЗаданнымРазмеромToolStripMenuItem7, FractalControler);
     SixthJulia.ConntectToStatusLabel(toolStripStatusLabel1);
     SixthJulia.ConnectToolStripProgressBar(toolStripProgressBar1);
     #endregion /Julia creating
     MandelbrotHandler = new FractalDataHandler(this, new MandelbrotWithClouds(), MainFractalPictureBox, new CosColorMode(), new Size(960, 640), FractalControler);
     MandelbrotHandler.ConnectToolStripProgressBar(toolStripProgressBar1);
     MandelbrotHandler.ConnectShowToMenuItem(обыкновенныйToolStripMenuItem, FractalControler, 32, 32);
     MandelbrotHandler.ConnectStandartResetToMenuItem(новыйСтандартногоРазмераToolStripMenuItem5, FractalControler);
     MandelbrotHandler.ConnectResetWithSizeFromWindowToMenuItem(новыйСЗаданнымРазмеромToolStripMenuItem5, FractalControler);
     MandelbrotHandler.ConntectToStatusLabel(toolStripStatusLabel1);
     AmoebaLasVegas = new FractalDataHandler(this, new AmoebaLasVegas(), MainFractalPictureBox, new TrioArgsCosColorMode(), new Size(900, 900), FractalControler);
     AmoebaLasVegas.ConnectToolStripProgressBar(toolStripProgressBar1);
     AmoebaLasVegas.ConnectShowToMenuItem(amoebaLasVegasToolStripMenuItem, FractalControler, 16, 16);
     AmoebaLasVegas.ConnectStandartResetToMenuItem(новыйСтандартногоРазмераToolStripMenuItem8, FractalControler);
     AmoebaLasVegas.ConntectToStatusLabel(toolStripStatusLabel1);
     _differenсe_in_width                 = this.Width - MainPanel.Width;
     _difference_in_height                = this.Height - MainPanel.Height;
     FractalDataHandler.UseSafeZoom       = true;
     FractalDataHandler.MaxGlobalPercent  = toolStripProgressBar1.Maximum;
     MainFractalPictureBox.OpenMenuEvent += () => { contextMenuStrip1.Show(Cursor.Position); };
     MainFractalPictureBox.SelectionPen   = null;
     fractalTemplates = FractalTemplates.LoadFromFile(FileToSave);
     #region GlobalTemplates
     GlobalTemplates.Initializate(FileToGlobalTemplates);
     GlobalTemplates.AddDefaultTemplate("Шрифт меню главного окна", Color.Black, menuStrip1.Font);
     GlobalTemplates.AddDefaultTemplate("Шрифт окна с шаблонами", Color.Black, new Font("Microsoft Sans Serif", 12.25f));
     GlobalTemplates.AddDefaultTemplate("Шрифт окна для настройки цветового режима", Color.Black, new Font("Microsoft sans serif", 12.25f));
     GlobalTemplates.AddDefaultTemplate("Шрифт окна для ввода фрактала джулии", Color.Black, new Font("Microsoft sans serif", 12.35f));
     GlobalTemplates.AddDefaultTemplate("Шрифт окна для ввода нового разрешения", Color.Black, new Font("Microsoft sans serif", 12.35f));
     GlobalTemplates.AddDefaultTemplate("Шрифт окна вращения фрактала", Color.Black, new Font("Microsoft sans serif", 12.35f));
     GlobalTemplates.SetTemplate(menuStrip1, "Шрифт меню главного окна");
     this.FormClosing += (s, _e) => { GlobalTemplates.SaveTemplates(FileToGlobalTemplates); };
     #endregion /GlobalTemplates
 }