PIbd-22 Puchkina A.A. LabWork_07 #8

Closed
a.puchkina wants to merge 7 commits from LabWork_7 into LabWork_06
2 changed files with 4 additions and 3 deletions
Showing only changes of commit 62d6124a79 - Show all commits

View File

@ -72,9 +72,8 @@ namespace AirplaneWithRadar.Generics
/// <param name="name">Название набора</param>
public void DelSet(string name)
{
if (!_airplaneStorages.ContainsKey(name))
return;
_airplaneStorages.Remove(name);
if (_airplaneStorages.ContainsKey(name))
_airplaneStorages.Remove(name);
}
/// <summary>
/// Доступ к набору

View File

@ -81,6 +81,7 @@ namespace AirplaneWithRadar
MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
ReloadObjects();
}
/// <summary>
@ -217,6 +218,7 @@ namespace AirplaneWithRadar
if (obj - pos != null)
{
MessageBox.Show("Объект удален");
_logger.LogInformation($"Удален объект с позиции {pos}");
pictureBoxCollection.Image = obj.ShowAirplanes();
}
else