From 97f085499903dac6d032540cf2db372dc143ff08 Mon Sep 17 00:00:00 2001 From: Evgehil Date: Mon, 18 Mar 2024 10:58:30 +0400 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=BB=D0=B0=D0=B1=D0=BE=D1=80=D0=B0=D1=82=D0=BE?= =?UTF-8?q?=D1=80=D0=BD=D0=BE=D0=B9=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CollectionGenericObjects/ICollectionGenericObjects.cs | 8 +------- Project_airbus/Project_airbus/Drawings/DirectionType.cs | 8 +------- Project_airbus/Project_airbus/Drawings/DrawingAirbus.cs | 7 +------ Project_airbus/Project_airbus/Drawings/DrawingAirplan.cs | 7 +------ Project_airbus/Project_airbus/Entities/EntityAirplan.cs | 8 +------- 5 files changed, 5 insertions(+), 33 deletions(-) diff --git a/Project_airbus/Project_airbus/CollectionGenericObjects/ICollectionGenericObjects.cs b/Project_airbus/Project_airbus/CollectionGenericObjects/ICollectionGenericObjects.cs index cc38227..fcd5723 100644 --- a/Project_airbus/Project_airbus/CollectionGenericObjects/ICollectionGenericObjects.cs +++ b/Project_airbus/Project_airbus/CollectionGenericObjects/ICollectionGenericObjects.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Project_airbus.CollectionGenericObjects; +namespace Project_airbus.CollectionGenericObjects; /// /// Интерфейс описания действий для набора хранимых объектов diff --git a/Project_airbus/Project_airbus/Drawings/DirectionType.cs b/Project_airbus/Project_airbus/Drawings/DirectionType.cs index bd57169..5096096 100644 --- a/Project_airbus/Project_airbus/Drawings/DirectionType.cs +++ b/Project_airbus/Project_airbus/Drawings/DirectionType.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Project_airbus.Drawings; +namespace Project_airbus.Drawings; /// /// Направление перемещения /// diff --git a/Project_airbus/Project_airbus/Drawings/DrawingAirbus.cs b/Project_airbus/Project_airbus/Drawings/DrawingAirbus.cs index dc37a0a..6360bf2 100644 --- a/Project_airbus/Project_airbus/Drawings/DrawingAirbus.cs +++ b/Project_airbus/Project_airbus/Drawings/DrawingAirbus.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Project_airbus.Entities; +using Project_airbus.Entities; namespace Project_airbus.Drawings; diff --git a/Project_airbus/Project_airbus/Drawings/DrawingAirplan.cs b/Project_airbus/Project_airbus/Drawings/DrawingAirplan.cs index 48537d1..8769601 100644 --- a/Project_airbus/Project_airbus/Drawings/DrawingAirplan.cs +++ b/Project_airbus/Project_airbus/Drawings/DrawingAirplan.cs @@ -1,9 +1,4 @@ using Project_airbus.Entities; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace Project_airbus.Drawings; @@ -225,7 +220,7 @@ public class DrawingAirplan { return; } - Pen pen = new(Color.Black); + Pen pen = new Pen(EntityAirplan.BodyAirbus); //корпус g.DrawRectangle(pen, _startPosX.Value, _startPosY.Value + 20, 100, 20); diff --git a/Project_airbus/Project_airbus/Entities/EntityAirplan.cs b/Project_airbus/Project_airbus/Entities/EntityAirplan.cs index f42c811..548cd6d 100644 --- a/Project_airbus/Project_airbus/Entities/EntityAirplan.cs +++ b/Project_airbus/Project_airbus/Entities/EntityAirplan.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Project_airbus.Entities; +namespace Project_airbus.Entities; /// /// Класс-сущность "Самолёт"