, Visual C#


- 2


myColor = false;

}

}

25.4. Graph.

private void button5_Click(object sender, EventArgs e)

{

float a, b, c, d, x_min, x_max;

a = Convert.ToSingle(textBox1.Text);

b = Convert.ToSingle(textBox2.Text);

c = Convert.ToSingle(textBox3.Text);

d = Convert.ToSingle(textBox4.Text);

x_min = Convert.ToSingle(textBox5.Text);

x_max = Convert.ToSingle(textBox6.Text);

Form13 myForm13 = new Form13();

myForm13.a = a;

myForm13.b = b;

myForm13.c = c;

myForm13.d = d;

myForm13.x_min = x_min;

myForm13.x_max = x_max;

myForm13.Show();

}

25.5. .

// myColor false:

bool myColor = false;

private void timer1_Tick(object sender, EventArgs e)

{

// :

if (myColor == false)

{

// :

this.label1.BackColor =

System.Drawing.Color.Yellow;

// myColor :

myColor = true;

}

else

{

// :

this.label1.BackColor =

System.Drawing.Color.White;

// myColor :

myColor = false;

}

}

25.6. .

// myColor false:

bool myColor = false;

private void timer1_Tick(object sender, EventArgs e)

{

// :

if (myColor == false)

{

// :

this.pictureBox1.ForeColor = Color.Black;

// myColor :

myColor = true;

}

else

{

// :

this.pictureBox1.ForeColor = Color.White;

// myColor :

myColor = false;

}

}





- -  - -  - -