завершение проекта
This commit is contained in:
parent
57d38a4bbe
commit
1ec37ccf88
@ -12,7 +12,6 @@ namespace WarmlyLocomotive
|
|||||||
// see https://aka.ms/applicationconfiguration.
|
// see https://aka.ms/applicationconfiguration.
|
||||||
ApplicationConfiguration.Initialize();
|
ApplicationConfiguration.Initialize();
|
||||||
Application.Run(new FormWarmlyLocomotiveCollection());
|
Application.Run(new FormWarmlyLocomotiveCollection());
|
||||||
Application.Run(new WarmlyLocomotiveForm());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -51,13 +51,13 @@ namespace WarmlyLocomotive.Generics
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Добавление объекта в набор на конкретную позицию
|
/// Добавление объекта в набор на конкретную позицию
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="airplane">Добавляемый самолет</param>
|
/// <param name="warmlylocomotive">Добавляемый тепловоз</param>
|
||||||
/// <param name="position">Позиция</param>
|
/// <param name="position">Позиция</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public bool Insert(T airplane, int position)
|
public bool Insert(T warmlylocomotive, int position)
|
||||||
{
|
{
|
||||||
if (!(position >= 0 && position <= Count && _places.Count < _maxCount)) return false;
|
if (!(position >= 0 && position <= Count && _places.Count < _maxCount)) return false;
|
||||||
_places.Insert(position, airplane);
|
_places.Insert(position, warmlylocomotive);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user