Agliullov D. A. Lab Work 6 Base #14

Merged
eegov merged 16 commits from Lab6 into Lab5 2022-11-07 11:37:06 +04:00
Showing only changes of commit b0731d4f14 - Show all commits

View File

@ -67,7 +67,7 @@ namespace AirBomber
if (comboBoxSelectorMap.SelectedIndex == -1 || string.IsNullOrEmpty(textBoxNewMapName.Text))
{
MessageBox.Show("Не все данные заполнены", "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error);
_logger.LogWarning("При добавлении карты {0}", comboBoxSelectorMap.SelectedIndex == -1 ? "Не была выбрана карта" : "Не была названа карта");
_logger.LogInformation("При добавлении карты {0}", comboBoxSelectorMap.SelectedIndex == -1 ? "Не была выбрана карта" : "Не была названа карта");
return;
}
if (!_mapsDict.ContainsKey(comboBoxSelectorMap.Text))
@ -141,7 +141,7 @@ namespace AirBomber
else
{
MessageBox.Show("Не удалось добавить объект");
_logger.LogWarning("Не удалось добавить объект");
_logger.LogInformation("Не удалось добавить объект");
}
}
catch (StorageOverflowException ex)
@ -175,7 +175,7 @@ namespace AirBomber
}
else
{
_logger.LogWarning("Не удалось добавить объект по позиции {0} равен null", pos);
_logger.LogInformation("Не удалось добавить объект по позиции {0} равен null", pos);
MessageBox.Show("Не удалось удалить объект");
}
}