From ddc2987b685113519a7db910ab32b12d4ab6373e Mon Sep 17 00:00:00 2001 From: ivans Date: Tue, 21 May 2024 10:54:47 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Drawnings/ExtentionDrawningTanker.cs | 2 +- .../ProjectGasolineTanker/Entities/EntityGasolineTanker.cs | 6 +++--- .../ProjectGasolineTanker/FormTankerConfig.cs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ProjectGasolineTanker/ProjectGasolineTanker/Drawnings/ExtentionDrawningTanker.cs b/ProjectGasolineTanker/ProjectGasolineTanker/Drawnings/ExtentionDrawningTanker.cs index c3a2bee..aaedc34 100644 --- a/ProjectGasolineTanker/ProjectGasolineTanker/Drawnings/ExtentionDrawningTanker.cs +++ b/ProjectGasolineTanker/ProjectGasolineTanker/Drawnings/ExtentionDrawningTanker.cs @@ -39,7 +39,7 @@ public static class ExtentionDrawningTanker /// /// Получение данных для сохранения в файл /// - /// Сохраняемый объект + /// Сохраняемый объект /// Строка с данными по объекту public static string GetDataForSave(this DrawningTanker drawningTanker) { diff --git a/ProjectGasolineTanker/ProjectGasolineTanker/Entities/EntityGasolineTanker.cs b/ProjectGasolineTanker/ProjectGasolineTanker/Entities/EntityGasolineTanker.cs index 7bebe45..70e564d 100644 --- a/ProjectGasolineTanker/ProjectGasolineTanker/Entities/EntityGasolineTanker.cs +++ b/ProjectGasolineTanker/ProjectGasolineTanker/Entities/EntityGasolineTanker.cs @@ -14,11 +14,11 @@ public class EntityGasolineTanker : EntityTanker /// /// Наличие безнобака /// - public bool Tank { get; private set; } + public bool Signalbeacon { get; private set; } /// /// Наличие радара /// - public bool Signalbeacon { get; private set; } + public bool Tank { get; private set; } /// /// Инициализация полей объекта-класса зенитной установки @@ -30,7 +30,7 @@ public class EntityGasolineTanker : EntityTanker /// Признак /// Признак - public EntityGasolineTanker(int speed, double weight, Color bodyColor, Color additionalColor, bool tank, bool signalbeacon) : base(speed, weight, bodyColor) + public EntityGasolineTanker(int speed, double weight, Color bodyColor, Color additionalColor, bool signalbeacon, bool tank) : base(speed, weight, bodyColor) { Signalbeacon = signalbeacon; Tank = tank; diff --git a/ProjectGasolineTanker/ProjectGasolineTanker/FormTankerConfig.cs b/ProjectGasolineTanker/ProjectGasolineTanker/FormTankerConfig.cs index 2776e7c..1b0edea 100644 --- a/ProjectGasolineTanker/ProjectGasolineTanker/FormTankerConfig.cs +++ b/ProjectGasolineTanker/ProjectGasolineTanker/FormTankerConfig.cs @@ -79,7 +79,7 @@ public partial class FormTankerConfig : Form break; case "labelModifiedObject": _tanker = new DrawningGasolineTanker((int)numericUpDownSpeed.Value, (double)numericUpDownWeight.Value, Color.White, - Color.Black, checkBoxTanker.Checked, checkBoxSignalbeacon.Checked); + Color.Black, checkBoxSignalbeacon.Checked, checkBoxTanker.Checked); break; } labelBodyColor.BackColor = Color.Empty;