, Visual C#



25.1. Graph.

private void button5_Click(object sender, EventArgs e)

{

float a, b, c, x_min, x_max;

a = Convert.ToSingle(textBox1.Text);

b = Convert.ToSingle(textBox2.Text);

c = Convert.ToSingle(textBox3.Text);

x_min = Convert.ToSingle(textBox4.Text);

x_max = Convert.ToSingle(textBox5.Text);

 

Form9 myForm9 = new Form9();

myForm9.a = a;

myForm9.b = b;

myForm9.c = c;

myForm9.x_min = x_min;

myForm9.x_max = x_max;

myForm9.Show();

}

25.2. .

// myColor false:

bool myColor = false;

private void timer1_Tick(object sender, EventArgs e)

{

// :

if (myColor == false)

{

//

// :

this.groupBox1.ForeColor =

System.Drawing.Color.Black;

// myColor :

myColor = true;

}

else

{

//

// :

this.groupBox1.ForeColor =

System.Drawing.Color.White;

// myColor :

myColor = false;

}

}

25.3. .

// myColor false:

bool myColor = false;

private void timer1_Tick(object sender, EventArgs e)

{

// :

if (myColor == false)

{

// pictureBox1:

this.pictureBox1.BackColor = Color.Red;

// myColor :

myColor = true;

}

else

{

// pictureBox1:

this.pictureBox1.BackColor = Color.Green;

// myColor :