GG
This commit is contained in:
parent
24a7f06439
commit
41e57526ba
@ -30,7 +30,6 @@ namespace ElectricLocomotive
|
|||||||
panelColorBlue.MouseDown += PanelColor_MouseDown;
|
panelColorBlue.MouseDown += PanelColor_MouseDown;
|
||||||
|
|
||||||
buttonCancelObject.Click += (s, e) => Close();
|
buttonCancelObject.Click += (s, e) => Close();
|
||||||
|
|
||||||
}
|
}
|
||||||
public void AddEvent(Action<DrawningLocomotive> ev)
|
public void AddEvent(Action<DrawningLocomotive> ev)
|
||||||
{
|
{
|
||||||
|
@ -25,8 +25,7 @@ namespace ProjectElectricLocomotive.Generics
|
|||||||
|
|
||||||
public int Insert(T loco, int position)
|
public int Insert(T loco, int position)
|
||||||
{
|
{
|
||||||
if (_places.Count >= _maxCount)
|
|
||||||
throw new StorageOverflowException(_maxCount);
|
|
||||||
|
|
||||||
if (position < 0 || position >= _maxCount)
|
if (position < 0 || position >= _maxCount)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user