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; }