From 7b4b1e3138228d3bc27b56e08a52b1ffcd1fe6d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D1=80=D0=B8=D1=8F=20=D0=9A=D0=BE=D1=82=D0=BE?= =?UTF-8?q?=D0=B2=D0=B0?= Date: Sun, 7 Apr 2024 23:03:16 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9B=D0=B0=D0=B1=D0=BE=D1=80=D0=B0=D1=82?= =?UTF-8?q?=D0=BE=D1=80=D0=BD=D0=B0=D1=8F=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=B0=20=E2=84=961=20=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=BD=D0=B0=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ExcavatorDifficult/DrawingExcavator.cs | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/ExcavatorDifficult/ExcavatorDifficult/DrawingExcavator.cs b/ExcavatorDifficult/ExcavatorDifficult/DrawingExcavator.cs index 827197b..f124887 100644 --- a/ExcavatorDifficult/ExcavatorDifficult/DrawingExcavator.cs +++ b/ExcavatorDifficult/ExcavatorDifficult/DrawingExcavator.cs @@ -104,7 +104,6 @@ public class DrawingExcavator else if (y > _pictureHeight.Value - _drawningExcavatorWidth) { y = _pictureHeight.Value - _drawningExcavatorHeight; - //return; } _startPosX = x; _startPosY = y; @@ -181,26 +180,14 @@ public class DrawingExcavator g.DrawArc(pen, _startPosX.Value, _startPosY.Value + 45, 30, 40, 130, 100); g.DrawArc(pen, _startPosX.Value + 80, _startPosY.Value + 50, 30, 40, 285, 110); g.DrawLine(pen, _startPosX.Value + 5, _startPosY.Value + 80, _startPosX.Value + 109, _startPosY.Value + 80); - //g.DrawEllipse(pen, _startPosX.Value + 5, _startPosY.Value + 53, 25, 25); - //g.DrawEllipse(pen, _startPosX.Value + 80, _startPosY.Value + 53, 25, 25); - //g.DrawEllipse(pen, _startPosX.Value + 30, _startPosY.Value + 69, 10, 10); - //g.DrawEllipse(pen, _startPosX.Value + 48, _startPosY.Value + 69, 10, 10); - //g.DrawEllipse(pen, _startPosX.Value + 65, _startPosY.Value + 69, 10, 10); - //g.DrawEllipse(pen, _startPosX.Value + 40, _startPosY.Value + 53, 7, 7); - //g.DrawEllipse(pen, _startPosX.Value + 60, _startPosY.Value + 53, 7, 7); + //заливка кабины и основного железа Brush br = new SolidBrush(Color.Black); g.FillRectangle(bodybrush, _startPosX.Value, _startPosY.Value + 20, 100, 30); g.FillRectangle(bodybrush, _startPosX.Value + 30, _startPosY.Value, 10, 20); g.FillRectangle(bodybrush, _startPosX.Value + 80, _startPosY.Value, 20, 20); - //g.FillEllipse(br, _startPosX.Value + 5, _startPosY.Value + 53, 25, 25); - //g.FillEllipse(br, _startPosX.Value + 80, _startPosY.Value + 53, 25, 25); - //g.FillEllipse(br, _startPosX.Value + 30, _startPosY.Value + 69, 10, 10); - //g.FillEllipse(br, _startPosX.Value + 48, _startPosY.Value + 69, 10, 10); - //g.FillEllipse(br, _startPosX.Value + 65, _startPosY.Value + 69, 10, 10); - //g.FillEllipse(br, _startPosX.Value + 40, _startPosY.Value + 53, 7, 7); - //g.FillEllipse(br, _startPosX.Value + 60, _startPosY.Value + 53, 7, 7); + Rink.DrawRinks(g, _startPosX.Value + 5, _startPosY.Value + 10);