небольшая коркктировка названий
This commit is contained in:
parent
7583b8b681
commit
d2e990ba5a
@ -56,7 +56,7 @@ namespace ProjectElectricLocomotive.DrawningObjects
|
||||
public int GetHeight => _locomotiveHeight;
|
||||
|
||||
/// <summary>
|
||||
/// Получение объекта IMoveableObject из объекта DrawningCar
|
||||
/// Получение объекта IMoveableObject из объекта DrawningLocomotive
|
||||
/// </summary>
|
||||
public IMoveableObject GetMoveableObject => new DrawningObjectLocomotive(this);
|
||||
|
||||
|
@ -95,7 +95,7 @@ namespace ProjectElectricLocomotive.Generics
|
||||
/// Вывод всего набора объектов
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public Bitmap ShowCars()
|
||||
public Bitmap ShowLocomotives()
|
||||
{
|
||||
Bitmap bmp = new(_pictureWidth, _pictureHeight);
|
||||
Graphics gr = Graphics.FromImage(bmp);
|
||||
|
@ -44,7 +44,7 @@ namespace ProjectElectricLocomotive
|
||||
if (_locomotives + form.SelectedLocomotive)
|
||||
{
|
||||
MessageBox.Show("Объект добавлен");
|
||||
pictureBoxCollection.Image = _locomotives.ShowCars();
|
||||
pictureBoxCollection.Image = _locomotives.ShowLocomotives();
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -69,7 +69,7 @@ namespace ProjectElectricLocomotive
|
||||
if (_locomotives - pos != null)
|
||||
{
|
||||
MessageBox.Show("Объект удален");
|
||||
pictureBoxCollection.Image = _locomotives.ShowCars();
|
||||
pictureBoxCollection.Image = _locomotives.ShowLocomotives();
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -83,7 +83,7 @@ namespace ProjectElectricLocomotive
|
||||
/// <param name="e"></param>
|
||||
private void ButtonRefreshCollection_Click(object sender, EventArgs e)
|
||||
{
|
||||
pictureBoxCollection.Image = _locomotives.ShowCars();
|
||||
pictureBoxCollection.Image = _locomotives.ShowLocomotives();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user