, Visual C#



24.1. Graph.

double a_Form3, b_Form3, x_min_Form3, x_max_Form3;

a_Form3 = Convert.ToDouble(textBox1.Text);

b_Form3 = Convert.ToDouble(textBox2.Text);

x_min_Form3 = Convert.ToDouble(textBox3.Text);

x_max_Form3 = Convert.ToDouble(textBox4.Text);

Form5 myForm5 = new Form5();

 

myForm5.a = a_Form3;

myForm5.b = b_Form3;

myForm5.x_min = x_min_Form3;

myForm5.x_max = x_max_Form3;

myForm5.Show();

timer1 ( ). , :

// myColor false:

bool myColor = false;

 

private void timer1_Tick(object sender, EventArgs e)

{

// :

if (myColor == false)

{

// :

this.radioButton2.BackColor =

System.Drawing.Color.Red;

// myColor :

myColor = true;

}

else

{

// :

this.radioButton2.BackColor =

System.Drawing.Color.White;

// myColor :

myColor = false;

}

}

24.2. ( pictureBox1_Paint).

// y = a*x + b

// :

public float a, b, x_min, x_max;

float Function_of_graph(float x)

{

float Function;

// y = f(x), :

Function = a * x + b;

return Function;

}

24.3. ( pictureBox1_Paint).

 

// :

public int Npoints = 100;

// ( ) O_x_pix O_y_pix

//

// "x" "y" (