コード例 #1
0
        public void MandelBrotClicked(object sender, EventArgs e)
        {
            Mandelbrot md = new Mandelbrot();

            md.ShowDialog();
            md.Text = "Mandelbrot - Fractal";
        }
コード例 #2
0
        // Initialize the options.
        public void Initialize(Mandelbrot frm)
        {
            this.fractalMandelbrot = frm;

            // Deselect all colors.
            this.ButtonNoneClick(null, null);

            // Select the colors in use by the main form.
            for (int i = 0; i < this.fractalMandelbrot.Colors.Count; i++)
            {
                // Select the PictureBox with this color.
                SelectColor(this.fractalMandelbrot.Colors[i]);
            }
        }