7 лабораторная работа
This commit is contained in:
parent
8e7d511144
commit
814814c743
@ -36,7 +36,7 @@ public abstract class AbstractCompany
|
||||
/// <summary>
|
||||
/// Вычисление максимального количества элементов, который можно разместить в окне
|
||||
/// </summary>
|
||||
private int GetMaxCount => _pictureWidth * _pictureHeight / (_placeSizeWidth * _placeSizeHeight);
|
||||
private int GetMaxCount => _pictureWidth * _pictureHeight / (_placeSizeWidth * _placeSizeHeight)-1;
|
||||
|
||||
/// <summary>
|
||||
/// Конструктор
|
||||
@ -58,9 +58,9 @@ public abstract class AbstractCompany
|
||||
/// <param name="company">Компания</param>
|
||||
/// <param name="stormtrooper">Добавляемый объект</param>
|
||||
/// <returns></returns>
|
||||
public static int operator +(AbstractCompany company, DrawningJet stormtrooper)
|
||||
public static int operator +(AbstractCompany company, DrawningJet jet)
|
||||
{
|
||||
return company._collection.Insert(stormtrooper);
|
||||
return company._collection.Insert(jet);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
x
Reference in New Issue
Block a user