From 2d01dd6b2f73301a1e329dec0d8f00aa45eed898 Mon Sep 17 00:00:00 2001 From: Stepan Date: Sat, 25 May 2024 11:45:03 +0400 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=BA=D0=B0=201?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MotorPlant/MotorPlantView/FormEngine.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/MotorPlant/MotorPlantView/FormEngine.cs b/MotorPlant/MotorPlantView/FormEngine.cs index 86cce61..291b40e 100644 --- a/MotorPlant/MotorPlantView/FormEngine.cs +++ b/MotorPlant/MotorPlantView/FormEngine.cs @@ -72,10 +72,7 @@ namespace MotorPlantView.Forms var form = DependencyManager.Instance.Resolve(); if (form.ShowDialog() == DialogResult.OK) { - if (form.ShowDialog() == DialogResult.OK) - { - return; - } + return; } _logger.LogInformation("Добавление нового ингридиента:{ ComponentName}-{ Count}", form.ComponentModel.ComponentName, form.Count); if (_engineComponents.ContainsKey(form.Id))