PIbd-11 Kudrinsky O.S. LabWork08 Simple #12

Closed
8floom wants to merge 3 commits from LabWork08 into LabWork07
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 9fa05c3e0a - Show all commits

View File

@ -116,7 +116,7 @@ public partial class FormShipCollection : Form
catch (Exception ex)
{
MessageBox.Show("Не удалось удалить объект");
_logger.LogInformation("Ошибка: {Message}", ex.Message);
_logger.LogError("Ошибка: {Message}", ex.Message);
}
}

View File

@ -64,7 +64,7 @@ public partial class FormShipConfig : Form
Bitmap bmp = new(pictureBoxObject.Width, pictureBoxObject.Height);
Graphics gr = Graphics.FromImage(bmp);
_ship?.SetPictureSize(pictureBoxObject.Width, pictureBoxObject.Height);
_ship?.SetPosition(110, 75);
_ship?.SetPosition(40, 25);
_ship?.DrawTransport(gr);
pictureBoxObject.Image = bmp;
}