net8.0, в StorageCollection базовый объект, в классе Создании компании "Ангар" заменил на "Хранилище"
This commit is contained in:
parent
27d8385bad
commit
60f0b8f106
@ -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>
|
||||||
/// Словарь (хранилище) с коллекциями
|
/// Словарь (хранилище) с коллекциями
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user