правки
This commit is contained in:
parent
a4cd1c3b18
commit
13a4dd128f
@ -53,7 +53,7 @@ public partial class FormCarCollection : Form
|
|||||||
/// Добавление автомобиля в коллекцию
|
/// Добавление автомобиля в коллекцию
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="car"></param>
|
/// <param name="car"></param>
|
||||||
private void SetCar(DrawningCar car)
|
private void SetCar(DrawningCar? car)
|
||||||
{
|
{
|
||||||
if (_company == null || car == null)
|
if (_company == null || car == null)
|
||||||
{
|
{
|
||||||
|
@ -52,7 +52,7 @@ public partial class FormCarConfig : Form
|
|||||||
Bitmap bmp = new(pictureBoxObject.Width, pictureBoxObject.Height);
|
Bitmap bmp = new(pictureBoxObject.Width, pictureBoxObject.Height);
|
||||||
Graphics gr = Graphics.FromImage(bmp);
|
Graphics gr = Graphics.FromImage(bmp);
|
||||||
_car?.SetPictureSize(pictureBoxObject.Width, pictureBoxObject.Height);
|
_car?.SetPictureSize(pictureBoxObject.Width, pictureBoxObject.Height);
|
||||||
_car?.SetPosition(5, 5);
|
_car?.SetPosition(15, 15);
|
||||||
_car?.DrawTransport(gr);
|
_car?.DrawTransport(gr);
|
||||||
pictureBoxObject.Image = bmp;
|
pictureBoxObject.Image = bmp;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user