, Visual C#


- 5


}

// ():

for (j_x = 1; j_x<=(N_step_grid_x / 2); j_x++)

{

x1 = j_x * step_grid_x;

x1_pix = O_x_pix - j_x * step_grid_x_pix;

// :

PointF point11 = new PointF(x1_pix, -1 * M_y +

O_y_pix);

PointF point12 = new PointF(x1_pix, y_point_end_pix);

// :

e.Graphics.DrawLine(greenPen_y, point11, point12);

}

// :

// :

int n; float p1 = 1, p2; string msg;

// "O","+y":

for (n = 0; n<=9; n++)

{

p2 = p1 - n * 0.1F;

msg = "" + p2.ToString() + "";

e.Graphics.DrawString(msg, this.Font, Brushes.Blue,

O_x_pix - 35, O_y_pix - 323 + n * step_grid_y_pix);

}

// "O","-y":

p1 = 0;

for (n = 1; n<=10; n++)

{

p2 = p1 - n * 0.1F;

msg = "" + p2.ToString() + "";

e.Graphics.DrawString(msg, this.Font, Brushes.Blue,

O_x_pix - 40, O_y_pix - 23 + n * step_grid_y_pix);

}

// "O","+x":

p1 = 0;

for (n = 0; n<=10; n++)

{

p2 = p1 + n * 0.1F;

msg = "" + p2.ToString() + "";

e.Graphics.DrawString(msg, this.Font, Brushes.Blue,

O_x_pix - 0 + n * step_grid_x_pix, O_y_pix - 0);

}

// "O","-x":

p1 = 0;

for (n = 1; n<=10; n++)

{

p2 = p1 - n * 0.1F;

msg = "" + p2.ToString() + "";

e.Graphics.DrawString(msg, this.Font, Brushes.Blue,

O_x_pix - 39 - n * step_grid_x_pix, O_y_pix - 0);

}

// y' = y / y_max:

msg = "y ' = y / | y_max | ;";

e.Graphics.DrawString(msg, this.Font,

Brushes.Blue, O_x_pix - 5, O_y_pix - 333);