Agliullov D. A. Lab Work 3 Base #11

Merged
eegov merged 19 commits from Lab3 into Lab2 2022-10-14 10:03:33 +04:00
Showing only changes of commit 58dca62ba7 - Show all commits

View File

@ -55,7 +55,7 @@
if (form.ShowDialog() == DialogResult.OK)
{
DrawningObject airplane = new(form.SelectedAirplane);
if (form.SelectedAirplane == null || !(_mapAirplanesCollectionGeneric + airplane))
if (form.SelectedAirplane == null || (_mapAirplanesCollectionGeneric + airplane) == -1)
{
MessageBox.Show("Не удалось добавить объект");
}
@ -82,7 +82,7 @@
return;
}
int pos = Convert.ToInt32(maskedTextBoxPosition.Text);
if (_mapAirplanesCollectionGeneric - pos)
if (_mapAirplanesCollectionGeneric - pos != null)
{
MessageBox.Show("Объект удален");
pictureBox.Image = _mapAirplanesCollectionGeneric.ShowSet();