Лёвушкина Анна, ПИбд-21, лаб5 простая #11

Closed
AnnaLioness wants to merge 8 commits from лаб5 into лаб4
Showing only changes of commit 5bb1d850e7 - Show all commits

View File

@ -136,20 +136,9 @@ namespace Lab1ContainersShip
} }
set set
{ {
/*if ((position < _places.Count && position >= 0) && _places.Count < _maxCount)
{
_places[position] = value;
}
else
{
return;
}*/
Insert(value, position); Insert(value, position);
// TODO проверка позиции
// TODO проверка свободных мест в списке
// TODO вставка в список по позиции
} }
} }
public IEnumerable<T> GetShips(int? maxCars = null) public IEnumerable<T> GetShips(int? maxCars = null)