From 0ce75bbe16e706bc2de0df064893eb25602cd354 Mon Sep 17 00:00:00 2001 From: just1valery Date: Thu, 6 Oct 2022 19:50:10 +0400 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=D0=B0=D1=86=D0=B8?= =?UTF-8?q?=D1=8F=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WarmlyShip/WarmlyShip/FormShip.cs | 1 + WarmlyShip/WarmlyShip/MapWithSetShipsGeneric.cs | 2 +- WarmlyShip/WarmlyShip/SetShipsGeneric.cs | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/WarmlyShip/WarmlyShip/FormShip.cs b/WarmlyShip/WarmlyShip/FormShip.cs index 14a5ceb..991c8fe 100644 --- a/WarmlyShip/WarmlyShip/FormShip.cs +++ b/WarmlyShip/WarmlyShip/FormShip.cs @@ -44,6 +44,7 @@ namespace WarmlyShip _ship = new DrawningShip(rnd.Next(100, 300), rnd.Next(1000, 2000), color); SetData(); + Draw(); } private void ButtonMove_Click(object sender, EventArgs e) diff --git a/WarmlyShip/WarmlyShip/MapWithSetShipsGeneric.cs b/WarmlyShip/WarmlyShip/MapWithSetShipsGeneric.cs index 9cb3bfd..212d2f0 100644 --- a/WarmlyShip/WarmlyShip/MapWithSetShipsGeneric.cs +++ b/WarmlyShip/WarmlyShip/MapWithSetShipsGeneric.cs @@ -53,7 +53,7 @@ namespace WarmlyShip /// Перегрузка оператора сложения /// /// - /// + /// /// public static bool operator +(MapWithSetShipsGeneric map, T ship) { diff --git a/WarmlyShip/WarmlyShip/SetShipsGeneric.cs b/WarmlyShip/WarmlyShip/SetShipsGeneric.cs index 5e511a5..8fa50b1 100644 --- a/WarmlyShip/WarmlyShip/SetShipsGeneric.cs +++ b/WarmlyShip/WarmlyShip/SetShipsGeneric.cs @@ -28,7 +28,7 @@ namespace WarmlyShip /// /// Добавление объекта в набор /// - /// Добавляемый автомобиль + /// Добавляемый корабль /// public bool Insert(T ship) { @@ -41,7 +41,7 @@ namespace WarmlyShip /// /// Добавление объекта в набор на конкретную позицию /// - /// Добавляемый автомобиль + /// Добавляемый корабль /// Позиция /// public bool Insert(T ship, int position)