Compare commits

...

2 Commits

3 changed files with 2 additions and 5 deletions

View File

@ -31,7 +31,7 @@ namespace HoistingCrane.CollectionGenericObjects
{ {
get get
{ {
return (pictureWidth * pictureHeight) / (_placeSizeHeight * _placeSizeWidth)-3; return (pictureWidth * pictureHeight) / (_placeSizeHeight * _placeSizeWidth);
} }
} }
public AbstractCompany(int picWidth, int picHeight, ICollectionGenericObjects<DrawningTrackedVehicle> array) public AbstractCompany(int picWidth, int picHeight, ICollectionGenericObjects<DrawningTrackedVehicle> array)

View File

@ -1,5 +1,6 @@
using System; using System;
using System.CodeDom.Compiler; using System.CodeDom.Compiler;
using System.Windows.Forms.VisualStyles;
namespace HoistingCrane.CollectionGenericObjects namespace HoistingCrane.CollectionGenericObjects
{ {
@ -24,7 +25,6 @@ namespace HoistingCrane.CollectionGenericObjects
{ {
get { return list.Count; } get { return list.Count; }
} }
public int SetMaxCount public int SetMaxCount
{ {
set set
@ -42,8 +42,6 @@ namespace HoistingCrane.CollectionGenericObjects
if (position >= Count || position < 0) return null; if (position >= Count || position < 0) return null;
return list[position]; return list[position];
} }
public int Insert(T obj) public int Insert(T obj)
{ {
// TODO проверка, что не превышено максимальное количество элементов // TODO проверка, что не превышено максимальное количество элементов

View File

@ -73,7 +73,6 @@ namespace HoistingCrane.CollectionGenericObjects
} }
return -1; return -1;
} }
public T? Remove(int position) public T? Remove(int position)