правки
This commit is contained in:
parent
a4cd1c3b18
commit
13a4dd128f
@ -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)
|
||||
{
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user