diff --git a/Sailboat/Sailboat/BoatsGenericCollection.cs b/Sailboat/Sailboat/BoatsGenericCollection.cs index 426fc8e..37a71b4 100644 --- a/Sailboat/Sailboat/BoatsGenericCollection.cs +++ b/Sailboat/Sailboat/BoatsGenericCollection.cs @@ -31,11 +31,11 @@ namespace Sailboat.Generics /// /// Размер занимаемого объектом места (ширина) /// - private readonly int _placeSizeWidth = 180; + private readonly int _placeSizeWidth = 160; /// /// Размер занимаемого объектом места (высота) /// - private readonly int _placeSizeHeight = 180; + private readonly int _placeSizeHeight = 160; /// /// Набор объектов /// @@ -74,7 +74,7 @@ namespace Sailboat.Generics /// /// /// - public static T? operator -(BoatsGenericCollection collect, int + public static bool operator -(BoatsGenericCollection collect, int pos) { T? obj = collect._collection.Get(pos); @@ -82,7 +82,7 @@ namespace Sailboat.Generics { collect._collection.Remove(pos); } - return obj; + return false; } /// /// Получение объекта IMoveableObject