PIbd-13 Sheymuhov A.I. LabWork03 Base #4

Closed
sheym wants to merge 4 commits from LabWork03 into LabWork02
Showing only changes of commit e10acc3475 - Show all commits

View File

@ -63,7 +63,7 @@ public partial class FormWarshipCollection : Form
return;
}
if (_company + drawningWarship)
if (_company + drawningWarship != -1)
{
MessageBox.Show("Объект добавлен");
pictureBox.Image = _company.Show();
@ -123,7 +123,7 @@ public partial class FormWarshipCollection : Form
}
int pos = Convert.ToInt32(maskedTextBoxPosition.Text);
if (_company - pos)
if (_company - pos != null)
{
MessageBox.Show("Объект удален");
pictureBox.Image = _company.Show();