From 13a4dd128f5de06d3d926b31ba2644cc2cd94641 Mon Sep 17 00:00:00 2001 From: Evgeny Egov Date: Sat, 6 Jan 2024 18:54:58 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ProjectSportCar/ProjectSportCar/FormCarCollection.cs | 2 +- ProjectSportCar/ProjectSportCar/FormCarConfig.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ProjectSportCar/ProjectSportCar/FormCarCollection.cs b/ProjectSportCar/ProjectSportCar/FormCarCollection.cs index badddec..bd89a05 100644 --- a/ProjectSportCar/ProjectSportCar/FormCarCollection.cs +++ b/ProjectSportCar/ProjectSportCar/FormCarCollection.cs @@ -53,7 +53,7 @@ public partial class FormCarCollection : Form /// Добавление автомобиля в коллекцию /// /// - private void SetCar(DrawningCar car) + private void SetCar(DrawningCar? car) { if (_company == null || car == null) { diff --git a/ProjectSportCar/ProjectSportCar/FormCarConfig.cs b/ProjectSportCar/ProjectSportCar/FormCarConfig.cs index 2f7855a..f6dc923 100644 --- a/ProjectSportCar/ProjectSportCar/FormCarConfig.cs +++ b/ProjectSportCar/ProjectSportCar/FormCarConfig.cs @@ -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; }