From 0ba01e0bd8bae9f9b17f4ba5aa6cdea4d716d5de Mon Sep 17 00:00:00 2001 From: Daria Date: Mon, 27 May 2024 12:09:57 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AbstractCompany.cs | 2 +- .../CollectionGenericObjects/Garage.cs | 6 +++- .../FormTrackedVehicleCollection.Designer.cs | 32 +++++++++---------- .../Excavator/FormTrackedVehicleCollection.cs | 2 ++ .../FormTrackedVehicleCollection.resx | 3 ++ 5 files changed, 27 insertions(+), 18 deletions(-) diff --git a/Excavator/Excavator/CollectionGenericObjects/AbstractCompany.cs b/Excavator/Excavator/CollectionGenericObjects/AbstractCompany.cs index ce941c9..7746e42 100644 --- a/Excavator/Excavator/CollectionGenericObjects/AbstractCompany.cs +++ b/Excavator/Excavator/CollectionGenericObjects/AbstractCompany.cs @@ -36,7 +36,7 @@ public abstract class AbstractCompany /// /// Вычисление максимального количества элементов, который можно разместить в окне /// - private int GetMaxCount => _pictureWidth * _pictureHeight / (_placeSizeWidth * _placeSizeHeight); + private int GetMaxCount =>( _pictureWidth * _pictureHeight) / (_placeSizeWidth * _placeSizeHeight); /// /// Конструктор diff --git a/Excavator/Excavator/CollectionGenericObjects/Garage.cs b/Excavator/Excavator/CollectionGenericObjects/Garage.cs index f1c84a5..cd7d3b5 100644 --- a/Excavator/Excavator/CollectionGenericObjects/Garage.cs +++ b/Excavator/Excavator/CollectionGenericObjects/Garage.cs @@ -45,8 +45,10 @@ public class Garage(int picWidth, int picHeight, ICollectionGenericObjects 310, 17 + + 25 + \ No newline at end of file