Ejemplo n.º 1
0
 private void button1_Click(object sender, System.EventArgs e)
 {
     //User cancelled. Do not save values and return old values
     //to the text boxes.
     txtTLReal.Text      = TLReal.ToString();
     txtTLImag.Text      = TLImag.ToString();
     txtBRReal.Text      = BRReal.ToString();
     txtBRImag.Text      = BRImag.ToString();
     txtIterations.Text  = Iterations.ToString();
     chkUseColor.Checked = useColor;
     this.Hide();
 }
Ejemplo n.º 2
0
        public frmOptions()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //Initialze the parameter values with defaults.
            TLReal     = -2.1;
            TLImag     = 1.2;
            BRReal     = 1.0;
            BRImag     = -1.2;
            Iterations = 50;
            //Display them in the text boxes.
            txtTLReal.Text      = TLReal.ToString();
            txtTLImag.Text      = TLImag.ToString();
            txtBRReal.Text      = BRReal.ToString();
            txtBRImag.Text      = BRImag.ToString();
            txtIterations.Text  = Iterations.ToString();
            chkUseColor.Checked = useColor;
        }