diff --git a/ProjertTrain/ProjertTrain/FormTrainsCollection.cs b/ProjertTrain/ProjertTrain/FormTrainsCollection.cs
index 0b2a271..b056115 100644
--- a/ProjertTrain/ProjertTrain/FormTrainsCollection.cs
+++ b/ProjertTrain/ProjertTrain/FormTrainsCollection.cs
@@ -46,15 +46,15 @@ namespace ProjectTrain
///
/// Добавление самолета в коллекцию
///
- ///
- private void SetTrain(DrawningTrain? plane)
+ ///
+ private void SetTrain(DrawningTrain? train)
{
- if (_company == null || plane == null)
+ if (_company == null || train == null)
{
return;
}
- if (_company + plane != -1)
+ if (_company + train != -1)
{
MessageBox.Show("Объект добавлен");
pictureBoxTrain.Image = _company.Show();
@@ -100,24 +100,24 @@ namespace ProjectTrain
return;
}
- DrawningTrain? plane = null;
+ DrawningTrain? train = null;
int counter = 100;
- while (plane == null)
+ while (train == null)
{
- plane = _company.GetRandomObject();
+ train = _company.GetRandomObject();
counter--;
if (counter <= 0)
{
break;
}
}
- if (plane == null)
+ if (train == null)
{
return;
}
FormTrain form = new()
{
- SetTrain = plane
+ SetTrain = train
};
form.ShowDialog();