This commit is contained in:
Игорь Гордеев 2023-12-29 10:55:57 +04:00
parent 24a7f06439
commit 41e57526ba
2 changed files with 1 additions and 3 deletions

View File

@ -30,7 +30,6 @@ namespace ElectricLocomotive
panelColorBlue.MouseDown += PanelColor_MouseDown;
buttonCancelObject.Click += (s, e) => Close();
}
public void AddEvent(Action<DrawningLocomotive> ev)
{

View File

@ -25,8 +25,7 @@ namespace ProjectElectricLocomotive.Generics
public int Insert(T loco, int position)
{
if (_places.Count >= _maxCount)
throw new StorageOverflowException(_maxCount);
if (position < 0 || position >= _maxCount)
{