Pibd_13_Fathutdinov_A.I. labWork_06 Simple #7

Closed
gettterot wants to merge 3 commits from labWork_06 into labWork_05
3 changed files with 21 additions and 2 deletions
Showing only changes of commit 3d5e3f3cdc - Show all commits

View File

@ -48,7 +48,7 @@ namespace ProjectLiner.CollectionGenericObjects
_pictureWidth = picWidth;
_pictureHeight = picHeight;
_collection = collection;
_collection.SetMaxCount = GetMaxCount;
_collection.MaxCount = GetMaxCount;
}
/// <summary>

View File

@ -16,7 +16,21 @@ public class ListGenericObjects<T> : ICollectionGenericObjects<T>
/// </summary>
private int _maxCount;
public int Count => _collection.Keys.Count;
public int MaxCount { set { if (value > 0) { _maxCount = value; } } }
public int MaxCount
{
get
{
return _maxCount;
}
set
{
if (value > 0)
{
_maxCount = value;
}
}
}
public CollectionType GetCollectionType => CollectionType.List;

View File

@ -17,6 +17,11 @@ namespace ProjectLiner.CollectionGenericObjects
public int MaxCount
{
get
{
return _collection.Length;
}
set
{
if (value > 0)