diff --git a/Confectionery/FormComponents.cs b/Confectionery/FormComponents.cs index 351a495..2f20d12 100644 --- a/Confectionery/FormComponents.cs +++ b/Confectionery/FormComponents.cs @@ -1,15 +1,6 @@ using ConfectioneryContracts.BindingModels; using ConfectioneryContracts.BusinessLogicsContracts; using Microsoft.Extensions.Logging; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; namespace ConfectioneryView { diff --git a/Confectionery/FormPastry.cs b/Confectionery/FormPastry.cs index 1c2c2ce..e3e7bfd 100644 --- a/Confectionery/FormPastry.cs +++ b/Confectionery/FormPastry.cs @@ -116,7 +116,7 @@ namespace ConfectioneryView } _logger.LogInformation("Изменение компонента: { ComponentName} - { Count} ", form.ComponentModel.ComponentName, form.Count); - _pastryComponents[form.Id] = (form.ComponentModel, form.Count); + _pastryComponents[id] = (form.ComponentModel, form.Count); LoadData(); } }