From 10d72b54ee2d4f0c6c306f2e894e197521553f8f Mon Sep 17 00:00:00 2001 From: Anastasia Date: Sun, 18 Dec 2022 21:35:26 +0400 Subject: [PATCH] =?UTF-8?q?=D0=93=D0=BE=D1=82=D0=BE=D0=B2=D0=B0=D1=8F=20?= =?UTF-8?q?=D1=81=D0=B5=D0=B4=D1=8C=D0=BC=D0=B0=D1=8F=20=D0=BB=D0=B0=D0=B1?= =?UTF-8?q?=D0=BE=D1=80=D0=B0=D1=82=D0=BE=D1=80=D0=BD=D0=B0=D1=8F=20=D1=80?= =?UTF-8?q?=D0=B0=D0=B1=D0=BE=D1=82=D0=B0.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AirplaneWithRadar/ExtentionAirplane.cs | 2 +- .../AirplaneWithRadar/FormAirplaneConfig.cs | 4 ++-- .../AirplaneWithRadar/MapWithSetAirplanesGeneric.cs | 11 ----------- AirplaneWithRadar/AirplaneWithRadar/MapsCollection.cs | 10 ---------- AirplaneWithRadar/AirplaneWithRadar/Program.cs | 3 --- AirplaneWithRadar/EntityAirplaneWithRadar.cs | 8 -------- 6 files changed, 3 insertions(+), 35 deletions(-) delete mode 100644 AirplaneWithRadar/EntityAirplaneWithRadar.cs diff --git a/AirplaneWithRadar/AirplaneWithRadar/ExtentionAirplane.cs b/AirplaneWithRadar/AirplaneWithRadar/ExtentionAirplane.cs index 0125813..c71ceb4 100644 --- a/AirplaneWithRadar/AirplaneWithRadar/ExtentionAirplane.cs +++ b/AirplaneWithRadar/AirplaneWithRadar/ExtentionAirplane.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; namespace AirplaneWithRadar { /// - /// Расширение для класса DrawningCar + /// Расширение для класса DrawingAirplane /// internal static class ExtentionAirplane { diff --git a/AirplaneWithRadar/AirplaneWithRadar/FormAirplaneConfig.cs b/AirplaneWithRadar/AirplaneWithRadar/FormAirplaneConfig.cs index 30374d5..e7624e4 100644 --- a/AirplaneWithRadar/AirplaneWithRadar/FormAirplaneConfig.cs +++ b/AirplaneWithRadar/AirplaneWithRadar/FormAirplaneConfig.cs @@ -16,7 +16,7 @@ namespace AirplaneWithRadar public partial class FormAirplaneConfig : Form { /// - /// Переменная-выбранная машина + /// Переменная-выбранный самолет /// DrawingAirplane _airplane = null; /// @@ -164,7 +164,7 @@ namespace AirplaneWithRadar } } /// - /// Добавление машины + /// Добавление самолета /// /// /// diff --git a/AirplaneWithRadar/AirplaneWithRadar/MapWithSetAirplanesGeneric.cs b/AirplaneWithRadar/AirplaneWithRadar/MapWithSetAirplanesGeneric.cs index 20d539d..8096c26 100644 --- a/AirplaneWithRadar/AirplaneWithRadar/MapWithSetAirplanesGeneric.cs +++ b/AirplaneWithRadar/AirplaneWithRadar/MapWithSetAirplanesGeneric.cs @@ -169,17 +169,6 @@ namespace AirplaneWithRadar /// Метод отрисовки фона /// /// - private void DrawHangar(Graphics g, int x, int y, int width, int height) - { - Pen pen = new(Color.Black, 3); - g.DrawLine(pen, x, y, x + width, y); - g.DrawLine(pen, x, y, x, y + height + 20); - g.DrawLine(pen, x, y + height + 20, x + width, y + height + 20); - } - /// - /// Метод отрисовки фона - /// - /// private void DrawBackground(Graphics g) { Pen pen = new(Color.White, 5); diff --git a/AirplaneWithRadar/AirplaneWithRadar/MapsCollection.cs b/AirplaneWithRadar/AirplaneWithRadar/MapsCollection.cs index 61fe105..75f319c 100644 --- a/AirplaneWithRadar/AirplaneWithRadar/MapsCollection.cs +++ b/AirplaneWithRadar/AirplaneWithRadar/MapsCollection.cs @@ -89,16 +89,6 @@ namespace AirplaneWithRadar } } /// - /// Метод записи информации в файл - /// - /// Строка, которую следует записать - /// Поток для записи - private static void WriteToFile(string text, FileStream stream) - { - byte[] info = new UTF8Encoding(true).GetBytes(text); - stream.Write(info, 0, info.Length); - } - /// /// Сохранение информации по автомобилям в хранилище в файл /// /// Путь и имя файла diff --git a/AirplaneWithRadar/AirplaneWithRadar/Program.cs b/AirplaneWithRadar/AirplaneWithRadar/Program.cs index 4cb41e7..8844030 100644 --- a/AirplaneWithRadar/AirplaneWithRadar/Program.cs +++ b/AirplaneWithRadar/AirplaneWithRadar/Program.cs @@ -13,9 +13,6 @@ namespace AirplaneWithRadar [STAThread] static void Main() { - //Application.SetHighDpiMode(HighDpiMode.SystemAware); - //Application.EnableVisualStyles(); - //Application.SetCompatibleTextRenderingDefault(false); ApplicationConfiguration.Initialize(); var services = new ServiceCollection(); ConfigureServices(services); diff --git a/AirplaneWithRadar/EntityAirplaneWithRadar.cs b/AirplaneWithRadar/EntityAirplaneWithRadar.cs deleted file mode 100644 index d555ecb..0000000 --- a/AirplaneWithRadar/EntityAirplaneWithRadar.cs +++ /dev/null @@ -1,8 +0,0 @@ -using System; - -public class Class1 -{ - public Class1() - { - } -}