правки

This commit is contained in:
Evgeny Egov 2024-01-06 18:54:58 +04:00
parent a4cd1c3b18
commit 13a4dd128f
Failed to extract signature
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ public partial class FormCarCollection : Form
/// Добавление автомобиля в коллекцию
/// </summary>
/// <param name="car"></param>
private void SetCar(DrawningCar car)
private void SetCar(DrawningCar? car)
{
if (_company == null || car == null)
{

View File

@ -52,7 +52,7 @@ public partial class FormCarConfig : Form
Bitmap bmp = new(pictureBoxObject.Width, pictureBoxObject.Height);
Graphics gr = Graphics.FromImage(bmp);
_car?.SetPictureSize(pictureBoxObject.Width, pictureBoxObject.Height);
_car?.SetPosition(5, 5);
_car?.SetPosition(15, 15);
_car?.DrawTransport(gr);
pictureBoxObject.Image = bmp;
}