завершение проекта

This commit is contained in:
ALINA_KURBANOVA 2023-11-18 14:18:53 +04:00
parent 57d38a4bbe
commit 1ec37ccf88
2 changed files with 3 additions and 4 deletions

View File

@ -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());
} }
} }
} }

View File

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