Merge branch 'Lab3' of http://student.git.athene.tech/d.agliullov/ISEbd-21_Agliullov.D.A._AirBomber.Base into Lab3
This commit is contained in:
commit
58dca62ba7
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user