PIBD-12 Morozov_D.V. LabWork№1 Simple #1

Closed
MorozovDanil wants to merge 7 commits from Lab1_base into main
Showing only changes of commit eeead030bb - Show all commits

View File

@ -194,12 +194,6 @@ public class DrawningContainerShip
g.DrawEllipse(pen, _startPosX.Value, _startPosY.Value + 60, 25, 25);
g.DrawEllipse(pen, _startPosX.Value + 105, _startPosY.Value + 60, 25, 25);
//палуба
Brush brYellow = new SolidBrush(Color.LightYellow);
g.DrawRectangle(pen, _startPosX.Value + 20, _startPosY.Value + 30, 30, 30);
g.FillRectangle(brYellow, _startPosX.Value + 20, _startPosY.Value + 30, 30, 30);
//кузов
Brush br = new SolidBrush(EntityContainerShip.BodyColor);
@ -208,7 +202,12 @@ public class DrawningContainerShip
g.FillRectangle(br, _startPosX.Value + 10, _startPosY.Value + 60, 110, 20);
g.FillEllipse(br, _startPosX.Value, _startPosY.Value + 60, 25, 25);
g.FillEllipse(br, _startPosX.Value + 105, _startPosY.Value + 60, 25, 25);
//палуба
//Brush brYellow = new SolidBrush(Color.LightYellow);
g.DrawRectangle(pen, _startPosX.Value + 20, _startPosY.Value + 30, 30, 30);
g.FillRectangle(br, _startPosX.Value + 20, _startPosY.Value + 30, 30, 30);
// кран
if (EntityContainerShip.Crane)