diff --git a/WinFormsAppExcavator/WinFormsAppExcavator/FormExcavatorCollection.cs b/WinFormsAppExcavator/WinFormsAppExcavator/FormExcavatorCollection.cs index a6fac6a..f4b6191 100644 --- a/WinFormsAppExcavator/WinFormsAppExcavator/FormExcavatorCollection.cs +++ b/WinFormsAppExcavator/WinFormsAppExcavator/FormExcavatorCollection.cs @@ -75,7 +75,7 @@ public partial class FormExcavatorCollection : Form return; } - if (_company + drawningExcavatorEmpty != -1) + if (_company + excavator == 1) { MessageBox.Show("Объект добавлен"); pictureBox.Image = _company.Show();