Переход на конструкторы

This commit is contained in:
devil_1nc 2022-09-26 20:12:20 +04:00
parent 69b1fb0114
commit ce9a95178c

View File

@ -176,6 +176,7 @@ namespace ProjectPlane
// window
Brush brBlue = new SolidBrush(Color.LightBlue);
Brush brBlack = new SolidBrush(Color.Black);
Point[] Triangle3 = new Point[3];
Triangle3[0].X = Convert.ToInt32(_startPosX + 108); Triangle3[0].Y = Convert.ToInt32(_startPosY - 2);
@ -185,14 +186,12 @@ namespace ProjectPlane
g.DrawLine(pen, _startPosX + 37, _startPosY + 20, _startPosX + 37, _startPosY + 25);
g.DrawLine(pen, _startPosX + 32, _startPosY + 25, _startPosX + 40, _startPosY + 25);
g.DrawRectangle(pen, _startPosX + 32, _startPosY + 25, 3, 3);
g.DrawRectangle(pen, _startPosX + 39, _startPosY + 25, 3, 3);
g.FillRectangle(brBlack, _startPosX + 32, _startPosY + 25, 3, 3);
g.FillRectangle(brBlack, _startPosX + 39, _startPosY + 25, 3, 3);
g.DrawLine(pen, _startPosX + 102, _startPosY + 20, _startPosX + 102, _startPosY + 25);
g.DrawRectangle(pen, _startPosX + 101, _startPosY + 25, 3, 3);
Brush brBlack = new SolidBrush(Color.Black);
g.FillRectangle(brBlack, _startPosX + 101, _startPosY + 25, 3, 3);
g.FillRectangle(brBlack, _startPosX + 5, _startPosY - 2, 18, 7);
g.FillEllipse(brBlack, _startPosX, _startPosY - 2, 7, 7);
g.FillEllipse(brBlack, _startPosX + 20, _startPosY - 2, 7, 7);