diff --git a/Lab1ContainersShip/Lab1ContainersShip/SetGeneric.cs b/Lab1ContainersShip/Lab1ContainersShip/SetGeneric.cs index 000768f..be425b6 100644 --- a/Lab1ContainersShip/Lab1ContainersShip/SetGeneric.cs +++ b/Lab1ContainersShip/Lab1ContainersShip/SetGeneric.cs @@ -135,21 +135,10 @@ namespace Lab1ContainersShip } set - { - /*if ((position < _places.Count && position >= 0) && _places.Count < _maxCount) - { - _places[position] = value; - } - - else - { - return; - }*/ + { + Insert(value, position); - // TODO проверка позиции - // TODO проверка свободных мест в списке - // TODO вставка в список по позиции } } public IEnumerable GetShips(int? maxCars = null)