Боровков М В ПИбд-22 4 лабораторная работа #5

Closed
bekodeg wants to merge 7 commits from labWork4 into labWork3
3 changed files with 5 additions and 5 deletions
Showing only changes of commit d2e990ba5a - Show all commits

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