Home > Net >  High and low side with visual interval of control chart how??????
High and low side with visual interval of control chart how??????

Time:10-09


Do such a control chart, which requires all small plane to movement along the route, and control the time interval, coordinates with the bosses, there are big answers, online, etc.,,,,,,,

CodePudding user response:

Private void button1_Click (object sender, EventArgs e)
{

Graphics g1=this. CreateGraphics ();
Pen pen2=new Pen (Brushes. OrangeRed);
String s1="AAAAAAA \ n82sgaf";
String s2="BBBBBBB \ nod42s";
//string s3="CCCCCCC \ ndgh3546";
Int k=115;//lateral line distance divided by two
Int j=100;//the spacing
Int m=30;//refresh rate
For (int s=0; S & lt;=0; S++)//cycle side
{
//the plane fly to turning point
1for (int i=1; I & lt;=200; I++)
{
Int a=2 * I,
Int b=2 * I,
Int c=I + 200;
Int d=600 - I;
The draw ();
G1. DrawArc (pen2, a, b, 10, 10, 0, 360);//the plane 1
G1. DrawString (s1, the Font, Brushes. Black, a + 10, b);//flight information 1
//g1. DrawArc (pen2, c, d, 10, 10, 0, 360);//the plane 3
//g1. DrawString (s3, the Font, Brushes. Gray, c + 10, d);//3
//the plane 2 appear
If (I & gt; J)
{
G1. DrawArc (pen2, 2 * (I - j), 2 * (I - j), 10, 10, 0, 360);
G1. DrawString (s2, the Font, Brushes. Black, 2 * (I - j) + 10, 2 * (I - j));//words
}
Thread.sleep (m);
}
//the plane 1
at the end of the lateral flight tofor (int i=1; I & lt;=k; I++)
{
Int c=400 + 2 * I;
The draw ();
G1. DrawArc (pen2, c., 400, 10, 10, 0, 360);
G1. DrawString (s1, the Font, Brushes. Black, c + 10, 400);//words
//aircraft continued to fly until 2 turning point
If (I - j & lt;=0)//to the point of turning flight
{
G1. DrawArc (pen2, 2 * (I + 200 - j), 2 * (I + 200 - j), 10, 10, 0, 360);
G1. DrawString (s2, the Font, Brushes. Black, 2 * (I + 200 - j) + 10, 2 * (I + 200 - j));//words
}

If (I - j & gt; 0)//flying sideways after turning point
{
G1. DrawArc (pen2, 2 * (I + 200 - j), 400, 10, 10, 0, 360);
G1. DrawString (s2, the Font, Brushes. Black, 2 * (I + 200 - j) + 10, 400);//words
}
Thread.sleep (m);
}
//the plane flew 1 is completed, the plane two haven't to the turning point, continue to oblique flying
If (k - j & lt; 0)
{
for (int i=1; I & lt;=j, k; I++)
{
Int a=400 - (j-k) * 2 + 2 * I,
The draw ();
G1. DrawArc (pen2, a, a, 10, 10, 0, 360);
G1. DrawString (s2, the Font, Brushes. Black, a + 10, a);//words
Thread.sleep (30);
}
//the plane flew two transverse
for (int i=1; I & lt; k; I++)
{
The draw ();
G1. DrawArc (pen2, 400 + I * 2, 400, 10, 10, 0, 360);
G1. DrawString (s2, the Font, Brushes. Black, 400 + I * 2 + 10, 400);//words
Thread.sleep (m);
}

}
//1 plane flight, the plane 2 to the turning point, continue to lateral flight
The else
{
for (int i=1; I & lt; j; I++)
{
The draw ();
G1. DrawArc (pen2, 630 - j * I * 2 + 2, 400, 10, 10, 0, 360);
G1. DrawString (s2, the Font, Brushes. Black, 630 - j * I * 2 + 2 + 10, 400);//words
Thread.sleep (m);
}
}
}
//purpose of figure
The draw ();
}
//method
//the runway and course
Public void the draw ()
{

Graphics g1=this. CreateGraphics ();
Pen Pen=new Pen (Brushes. Black);
Pen pen1=new Pen (Brushes. LightSkyBlue);
The Size Size=new System. Drawing. The Size (180, 10);
A Rectangle rec=new Rectangle (new Point (450, 400), the size).
Point p=new Point (0, 0);
Point p2=new Point (405, 405);
Point p3=new Point (450, 405);
Point p4=new Point (200, 600);
G1. The Clear (enclosing BackColor);
G1. DrawRectangle (pen, rec);
G1. DrawLine (pen1, p1, p2);
G1. DrawLine (pen1, p3, p2);
G1. DrawLine (pen1, p4, p2);
}
But his blind groping for the many planes inside and time control is not how the
Have a great god teach???????

CodePudding user response:

How can refer to the game engine

Timer1. Tick +=(s, e)=& gt; The Update

The Update () {
//unified computing each plane coordinates, and then update interface
}
  •  Tags:  
  • C#
  • Related