From f6f10c7158baa11b3af50b085790288b0e417f99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B8=D0=BC=D0=B0?= Date: Tue, 21 May 2024 00:45:57 +0400 Subject: [PATCH] sd --- .../ProjectTank/{DrawningBoat.cs => DrawningTank.cs} | 10 ++++------ .../ProjectTank/{EntityBoat.cs => EntityTank.cs} | 0 .../{FormBoat.Designer.cs => FormTank.Designer.cs} | 0 ProjectTank/ProjectTank/{FormBoat.cs => FormTank.cs} | 0 .../ProjectTank/{FormBoat.resx => FormTank.resx} | 0 5 files changed, 4 insertions(+), 6 deletions(-) rename ProjectTank/ProjectTank/{DrawningBoat.cs => DrawningTank.cs} (94%) rename ProjectTank/ProjectTank/{EntityBoat.cs => EntityTank.cs} (100%) rename ProjectTank/ProjectTank/{FormBoat.Designer.cs => FormTank.Designer.cs} (100%) rename ProjectTank/ProjectTank/{FormBoat.cs => FormTank.cs} (100%) rename ProjectTank/ProjectTank/{FormBoat.resx => FormTank.resx} (100%) diff --git a/ProjectTank/ProjectTank/DrawningBoat.cs b/ProjectTank/ProjectTank/DrawningTank.cs similarity index 94% rename from ProjectTank/ProjectTank/DrawningBoat.cs rename to ProjectTank/ProjectTank/DrawningTank.cs index 335ddf4..9cecaf5 100644 --- a/ProjectTank/ProjectTank/DrawningBoat.cs +++ b/ProjectTank/ProjectTank/DrawningTank.cs @@ -171,10 +171,8 @@ public class DrawningTank Pen pen = new(EntityTank.BodyColor, 2); Pen pen2 = new(Color.Black, 2); Pen pen3 = new(Color.Black, 3); - Brush motorBrush = new SolidBrush(Color.Black); - Brush glassBrush = new SolidBrush(Color.Blue); - Brush glassBrush2 = new SolidBrush(EntityTank.AdditionalColor); - Brush oarsBrush = new HatchBrush(HatchStyle.ZigZag, EntityTank.AdditionalColor, Color.FromArgb(163, 163, 163)); + Brush Brush = new SolidBrush(Color.Black); + Brush Brush2 = new SolidBrush(EntityTank.AdditionalColor); Brush additionalBrush = new SolidBrush(EntityTank.AdditionalColor); //границы танка @@ -211,8 +209,8 @@ public class DrawningTank g.DrawLine(pen2, _startPosX.Value + 100, _startPosY.Value + 15, _startPosX.Value + 110, _startPosY.Value + 10); g.DrawLine(pen2, _startPosX.Value + 110, _startPosY.Value + 15, _startPosX.Value + 110, _startPosY.Value + 10); g.DrawLine(pen2, _startPosX.Value + 120, _startPosY.Value + 15, _startPosX.Value + 110, _startPosY.Value + 10); - g.FillRectangle(motorBrush, _startPosX.Value + 100, _startPosY.Value + 3, 20, 7); - g.FillRectangle(motorBrush, _startPosX.Value + 120, _startPosY.Value + 5, 20, 2); + g.FillRectangle(Brush, _startPosX.Value + 100, _startPosY.Value + 3, 20, 7); + g.FillRectangle(Brush, _startPosX.Value + 120, _startPosY.Value + 5, 20, 2); } if (EntityTank.Luke) diff --git a/ProjectTank/ProjectTank/EntityBoat.cs b/ProjectTank/ProjectTank/EntityTank.cs similarity index 100% rename from ProjectTank/ProjectTank/EntityBoat.cs rename to ProjectTank/ProjectTank/EntityTank.cs diff --git a/ProjectTank/ProjectTank/FormBoat.Designer.cs b/ProjectTank/ProjectTank/FormTank.Designer.cs similarity index 100% rename from ProjectTank/ProjectTank/FormBoat.Designer.cs rename to ProjectTank/ProjectTank/FormTank.Designer.cs diff --git a/ProjectTank/ProjectTank/FormBoat.cs b/ProjectTank/ProjectTank/FormTank.cs similarity index 100% rename from ProjectTank/ProjectTank/FormBoat.cs rename to ProjectTank/ProjectTank/FormTank.cs diff --git a/ProjectTank/ProjectTank/FormBoat.resx b/ProjectTank/ProjectTank/FormTank.resx similarity index 100% rename from ProjectTank/ProjectTank/FormBoat.resx rename to ProjectTank/ProjectTank/FormTank.resx