diff --git a/Laba1Loco/Laba1Loco/TrainsGenericStorage.cs b/Laba1Loco/Laba1Loco/TrainsGenericStorage.cs
index 11fb3e3..c581eb7 100644
--- a/Laba1Loco/Laba1Loco/TrainsGenericStorage.cs
+++ b/Laba1Loco/Laba1Loco/TrainsGenericStorage.cs
@@ -11,11 +11,11 @@ namespace Laba1Loco
///
/// Словарь (хранилище)
///
- readonly Dictionary> _carStorages;
+ readonly Dictionary> _trainStorages;
///
/// Возвращение списка названий наборов
///
- public List Keys => _carStorages.Keys.ToList();
+ public List Keys => _trainStorages.Keys.ToList();
///
/// Ширина окна отрисовки
///
@@ -31,7 +31,7 @@ namespace Laba1Loco
///
public TrainsGenericStorage(int pictureWidth, int pictureHeight)
{
- _carStorages = new Dictionary>();
+ _trainStorages = new Dictionary>();
_pictureWidth = pictureWidth;
_pictureHeight = pictureHeight;
}
@@ -41,9 +41,9 @@ namespace Laba1Loco
/// Название набора
public void AddSet(string name)
{
- if (_carStorages.ContainsKey(name))
+ if (_trainStorages.ContainsKey(name))
return;
- _carStorages[name] = new TrainsGenericCollection(_pictureWidth, _pictureHeight);
+ _trainStorages[name] = new TrainsGenericCollection(_pictureWidth, _pictureHeight);
}
///
/// Удаление набора
@@ -51,9 +51,9 @@ namespace Laba1Loco
/// Название набора
public void DelSet(string name)
{
- if (!_carStorages.ContainsKey(name))
+ if (!_trainStorages.ContainsKey(name))
return;
- _carStorages.Remove(name);
+ _trainStorages.Remove(name);
}
///
/// Доступ к набору
@@ -65,8 +65,8 @@ namespace Laba1Loco
{
get
{
- if (_carStorages.ContainsKey(ind))
- return _carStorages[ind];
+ if (_trainStorages.ContainsKey(ind))
+ return _trainStorages[ind];
return null;
}
}