diff --git a/ElectricLocomotive/DrawningObjects/DrawningLocomotive.cs b/ElectricLocomotive/DrawningObjects/DrawningLocomotive.cs index 16842eb..8a91dc8 100644 --- a/ElectricLocomotive/DrawningObjects/DrawningLocomotive.cs +++ b/ElectricLocomotive/DrawningObjects/DrawningLocomotive.cs @@ -56,7 +56,7 @@ namespace ProjectElectricLocomotive.DrawningObjects public int GetHeight => _locomotiveHeight; /// - /// Получение объекта IMoveableObject из объекта DrawningCar + /// Получение объекта IMoveableObject из объекта DrawningLocomotive /// public IMoveableObject GetMoveableObject => new DrawningObjectLocomotive(this); diff --git a/ElectricLocomotive/Generics/LocomotivesGenericCollection.cs b/ElectricLocomotive/Generics/LocomotivesGenericCollection.cs index 6bb2849..2b0644b 100644 --- a/ElectricLocomotive/Generics/LocomotivesGenericCollection.cs +++ b/ElectricLocomotive/Generics/LocomotivesGenericCollection.cs @@ -95,7 +95,7 @@ namespace ProjectElectricLocomotive.Generics /// Вывод всего набора объектов /// /// - public Bitmap ShowCars() + public Bitmap ShowLocomotives() { Bitmap bmp = new(_pictureWidth, _pictureHeight); Graphics gr = Graphics.FromImage(bmp); diff --git a/ElectricLocomotive/LogicFormLocomotiveCollection.cs b/ElectricLocomotive/LogicFormLocomotiveCollection.cs index f2cb6ac..ca624f5 100644 --- a/ElectricLocomotive/LogicFormLocomotiveCollection.cs +++ b/ElectricLocomotive/LogicFormLocomotiveCollection.cs @@ -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 /// private void ButtonRefreshCollection_Click(object sender, EventArgs e) { - pictureBoxCollection.Image = _locomotives.ShowCars(); + pictureBoxCollection.Image = _locomotives.ShowLocomotives(); } } }