net8.0, в StorageCollection базовый объект, в классе Создании компании "Ангар" заменил на "Хранилище"

This commit is contained in:
SAliulov 2024-06-17 17:14:31 +03:00
parent 27d8385bad
commit 60f0b8f106
3 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@ namespace ProjectAirBomber.CollectionGenericObjects;
/// </summary> /// </summary>
/// <typeparam name="T"></typeparam> /// <typeparam name="T"></typeparam>
public class StorageCollection<T> public class StorageCollection<T>
where T : DrawningAirBomber where T : DrawningBomber
{ {
/// <summary> /// <summary>
/// Словарь (хранилище) с коллекциями /// Словарь (хранилище) с коллекциями

View File

@ -166,7 +166,7 @@ public partial class FormBomberCollection : Form
} }
catch (ObjectNotFoundException) catch (ObjectNotFoundException)
{ {
_logger.LogError("Ошибка при передаче объекта на FormAirFighter"); _logger.LogError("Ошибка при передаче объекта на FormAirBomber");
} }
} }
@ -276,7 +276,7 @@ public partial class FormBomberCollection : Form
switch (comboBoxSelectorCompany.Text) switch (comboBoxSelectorCompany.Text)
{ {
case "Ангар": case "Хранилище":
_company = new BomberHungarService(pictureBox.Width, pictureBox.Height, collection); _company = new BomberHungarService(pictureBox.Width, pictureBox.Height, collection);
break; break;
} }

View File

@ -2,7 +2,7 @@
<PropertyGroup> <PropertyGroup>
<OutputType>WinExe</OutputType> <OutputType>WinExe</OutputType>
<TargetFramework>net7.0-windows</TargetFramework> <TargetFramework>net8.0-windows7.0</TargetFramework>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<UseWindowsForms>true</UseWindowsForms> <UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>