небольшая коркктировка названий

This commit is contained in:
bekodeg 2023-10-24 14:59:56 +04:00
parent 7583b8b681
commit d2e990ba5a
3 changed files with 5 additions and 5 deletions

View File

@ -56,7 +56,7 @@ namespace ProjectElectricLocomotive.DrawningObjects
public int GetHeight => _locomotiveHeight;
/// <summary>
/// Получение объекта IMoveableObject из объекта DrawningCar
/// Получение объекта IMoveableObject из объекта DrawningLocomotive
/// </summary>
public IMoveableObject GetMoveableObject => new DrawningObjectLocomotive(this);

View File

@ -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);

View File

@ -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();
}
}
}