Переименование классов

This commit is contained in:
m1aksim1 2022-10-13 22:45:34 +04:00
parent 8127c1cc38
commit 9a87009db1
3 changed files with 3 additions and 3 deletions

View File

@ -1,10 +1,10 @@
namespace WarPlanes
{
internal class DrawningObject : IDrawningObject
internal class DrawningObjectWarPlane : IDrawningObject
{
private DrawningWarPlane _warplane = null;
public DrawningObject(DrawningWarPlane warplane)
public DrawningObjectWarPlane(DrawningWarPlane warplane)
{
_warplane = warplane;
}

View File

@ -18,7 +18,7 @@
toolStripStatusLabelSpeed.Text = $"Скорость: {warplane.WarPlane.Speed}";
toolStripStatusLabelWeight.Text = $"Вес: {warplane.WarPlane.Weight}";
toolStripStatusLabelBodyColor.Text = $"Цвет: {warplane.WarPlane.BodyColor.Name}";
pictureBoxWarPlane.Image = _abstractMap.CreateMap(pictureBoxWarPlane.Width, pictureBoxWarPlane.Height, new DrawningObject(warplane));
pictureBoxWarPlane.Image = _abstractMap.CreateMap(pictureBoxWarPlane.Width, pictureBoxWarPlane.Height, new DrawningObjectWarPlane(warplane));
}
/// <summary>
/// Обработка нажатия кнопки "Создать"