PIbd-21. Teryokhin A.S. Lab work 04 #4

Closed
katana wants to merge 2 commits from Lab4Base into Lab3Base
2 changed files with 4 additions and 4 deletions
Showing only changes of commit c912beb8e9 - Show all commits
ProjectSeaplane/ProjectSeaplane

@ -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;