Доработка 1

This commit is contained in:
Stepan 2024-05-25 11:45:03 +04:00
parent 74175617bd
commit 2d01dd6b2f

View File

@ -70,13 +70,10 @@ namespace MotorPlantView.Forms
private void buttonAdd_Click(object sender, EventArgs e) private void buttonAdd_Click(object sender, EventArgs e)
{ {
var form = DependencyManager.Instance.Resolve<FormEngineComponent>(); var form = DependencyManager.Instance.Resolve<FormEngineComponent>();
if (form.ShowDialog() == DialogResult.OK)
{
if (form.ShowDialog() == DialogResult.OK) if (form.ShowDialog() == DialogResult.OK)
{ {
return; return;
} }
}
_logger.LogInformation("Добавление нового ингридиента:{ ComponentName}-{ Count}", form.ComponentModel.ComponentName, form.Count); _logger.LogInformation("Добавление нового ингридиента:{ ComponentName}-{ Count}", form.ComponentModel.ComponentName, form.Count);
if (_engineComponents.ContainsKey(form.Id)) if (_engineComponents.ContainsKey(form.Id))
{ {