From 087813f8fb302f627612be491d06b3d9a0d69c34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BD=D0=B8=D1=8F=D1=80=20=D0=90=D0=B3=D0=BB?= =?UTF-8?q?=D0=B8=D1=83=D0=BB=D0=BB=D0=BE=D0=B2?= Date: Mon, 31 Oct 2022 07:29:26 +0400 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D1=81=D0=BE=D1=80=D1=82=D0=B8=D1=80=D0=BE?= =?UTF-8?q?=D0=B2=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AirBomber/AirBomber/AirplaneCompareByType.cs | 4 ++-- AirBomber/AirBomber/FormMapWithSetAirplanes.Designer.cs | 4 ++-- AirBomber/AirBomber/MapWithSetAirplanesGeneric.cs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/AirBomber/AirBomber/AirplaneCompareByType.cs b/AirBomber/AirBomber/AirplaneCompareByType.cs index 464b8f6..43bc7ce 100644 --- a/AirBomber/AirBomber/AirplaneCompareByType.cs +++ b/AirBomber/AirBomber/AirplaneCompareByType.cs @@ -18,9 +18,9 @@ { return -1; } - if (xAirplane.GetType().Name != yAirplane.Airplane.GetType().Name) + if (xAirplane.Airplane.GetType().Name != yAirplane.Airplane.GetType().Name) { - if (xAirplane.Airplane.GetType().Name == "DrawningAirplane") + if (xAirplane.Airplane.GetType() == typeof(DrawningAirplane)) { return -1; } diff --git a/AirBomber/AirBomber/FormMapWithSetAirplanes.Designer.cs b/AirBomber/AirBomber/FormMapWithSetAirplanes.Designer.cs index b7aa21f..9c855b6 100644 --- a/AirBomber/AirBomber/FormMapWithSetAirplanes.Designer.cs +++ b/AirBomber/AirBomber/FormMapWithSetAirplanes.Designer.cs @@ -298,7 +298,7 @@ this.buttonSortByColor.TabIndex = 11; this.buttonSortByColor.Text = "Отсортировать по цвету"; this.buttonSortByColor.UseVisualStyleBackColor = true; - this.buttonSortByColor.Click += new System.EventHandler(this.ButtonSortByType_Click); + this.buttonSortByColor.Click += new System.EventHandler(this.ButtonSortByColor_Click); // // buttonSortByType // @@ -308,7 +308,7 @@ this.buttonSortByType.TabIndex = 12; this.buttonSortByType.Text = "Отсортировать по типу"; this.buttonSortByType.UseVisualStyleBackColor = true; - this.buttonSortByType.Click += new System.EventHandler(this.ButtonSortByColor_Click); + this.buttonSortByType.Click += new System.EventHandler(this.ButtonSortByType_Click); // // FormMapWithSetAirplanes // diff --git a/AirBomber/AirBomber/MapWithSetAirplanesGeneric.cs b/AirBomber/AirBomber/MapWithSetAirplanesGeneric.cs index cd48a0b..96b94fb 100644 --- a/AirBomber/AirBomber/MapWithSetAirplanesGeneric.cs +++ b/AirBomber/AirBomber/MapWithSetAirplanesGeneric.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; namespace AirBomber { internal class MapWithSetAirplanesGeneric - where T : class, IDrawningObject + where T : class, IEquatable, IDrawningObject where U : AbstractMap { ///