4 базовая лабораторная
This commit is contained in:
parent
016d864a65
commit
c912beb8e9
@ -18,14 +18,14 @@ namespace ProjectSeaplane
|
||||
/// <summary>
|
||||
/// Набор объектов
|
||||
/// </summary>
|
||||
private readonly CarsGenericStorage _storage;
|
||||
private readonly PlanesGenericStorage _storage;
|
||||
/// <summary>
|
||||
/// Конструктор
|
||||
/// </summary>
|
||||
public FormPlaneCollection()
|
||||
{
|
||||
InitializeComponent();
|
||||
_storage = new CarsGenericStorage(pictureBoxCollection.Width, pictureBoxCollection.Height);
|
||||
_storage = new PlanesGenericStorage(pictureBoxCollection.Width, pictureBoxCollection.Height);
|
||||
}
|
||||
/// <summary>
|
||||
/// Заполнение listBoxObjects
|
||||
|
@ -9,13 +9,13 @@ using ProjectSeaplane.Generics;
|
||||
|
||||
namespace ProjectSeaplane.Generics
|
||||
{
|
||||
internal class CarsGenericStorage
|
||||
internal class PlanesGenericStorage
|
||||
{
|
||||
readonly Dictionary<string, PlanesGenericCollection<DrawningPlane, DrawningObjectPlane>> _planeStorages;
|
||||
public List<string> Keys => _planeStorages.Keys.ToList();
|
||||
private readonly int _pictureWidth;
|
||||
private readonly int _pictureHeight;
|
||||
public CarsGenericStorage(int pictureWidth, int pictureHeight)
|
||||
public PlanesGenericStorage(int pictureWidth, int pictureHeight)
|
||||
{
|
||||
_planeStorages = new Dictionary<string, PlanesGenericCollection<DrawningPlane, DrawningObjectPlane>>();
|
||||
_pictureWidth = pictureWidth;
|
||||
|
Loading…
x
Reference in New Issue
Block a user