From 1ec37ccf88001822b5b38c9f00e53fdfb543e01c Mon Sep 17 00:00:00 2001 From: ALINA_KURBANOVA Date: Sat, 18 Nov 2023 14:18:53 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B7=D0=B0=D0=B2=D0=B5=D1=80=D1=88=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BF=D1=80=D0=BE=D0=B5=D0=BA=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WarmlyLocomotive/Program.cs | 1 - WarmlyLocomotive/SetGeneric.cs | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/WarmlyLocomotive/Program.cs b/WarmlyLocomotive/Program.cs index fc272d5..063fbae 100644 --- a/WarmlyLocomotive/Program.cs +++ b/WarmlyLocomotive/Program.cs @@ -12,7 +12,6 @@ namespace WarmlyLocomotive // see https://aka.ms/applicationconfiguration. ApplicationConfiguration.Initialize(); Application.Run(new FormWarmlyLocomotiveCollection()); - Application.Run(new WarmlyLocomotiveForm()); } } } \ No newline at end of file diff --git a/WarmlyLocomotive/SetGeneric.cs b/WarmlyLocomotive/SetGeneric.cs index 4902aa0..eea1c51 100644 --- a/WarmlyLocomotive/SetGeneric.cs +++ b/WarmlyLocomotive/SetGeneric.cs @@ -51,13 +51,13 @@ namespace WarmlyLocomotive.Generics /// /// Добавление объекта в набор на конкретную позицию /// - /// Добавляемый самолет + /// Добавляемый тепловоз /// Позиция /// - public bool Insert(T airplane, int position) + public bool Insert(T warmlylocomotive, int position) { if (!(position >= 0 && position <= Count && _places.Count < _maxCount)) return false; - _places.Insert(position, airplane); + _places.Insert(position, warmlylocomotive); return true; } ///