lab 7 (добавление warn)

This commit is contained in:
Андрей Байгулов 2023-12-24 14:09:59 +04:00
parent 1a626daa2b
commit eaefd63d01

View File

@ -92,6 +92,7 @@ namespace ProjectElectricLocomotive
catch (StorageOverflowException ex) catch (StorageOverflowException ex)
{ {
MessageBox.Show(ex.Message); MessageBox.Show(ex.Message);
_logger.LogWarning("Не удалось добавить объект");
} }
} }
private void ButtonRemoveObject_Click(object sender, EventArgs e) private void ButtonRemoveObject_Click(object sender, EventArgs e)