diff --git a/IceCreamShop/IceCreamShopView/FormComponent.Designer.cs b/IceCreamShop/IceCreamShopView/FormComponent.Designer.cs index 0102b94..b15d0b3 100644 --- a/IceCreamShop/IceCreamShopView/FormComponent.Designer.cs +++ b/IceCreamShop/IceCreamShopView/FormComponent.Designer.cs @@ -106,7 +106,6 @@ Name = "FormComponent"; StartPosition = FormStartPosition.CenterScreen; Text = "Компонент"; - Load += FormComponent_Load; ResumeLayout(false); PerformLayout(); } diff --git a/IceCreamShop/IceCreamShopView/FormShop.cs b/IceCreamShop/IceCreamShopView/FormShop.cs index 44bdbac..5b61e3f 100644 --- a/IceCreamShop/IceCreamShopView/FormShop.cs +++ b/IceCreamShop/IceCreamShopView/FormShop.cs @@ -97,8 +97,7 @@ namespace IceCreamShopView Id = _id ?? 0, ShopName = textBoxName.Text, Address = textBoxAddress.Text, - DateOpening = dateTimePicker.Value, - ShopIceCreams = _shopIceCreams + DateOpening = dateTimePicker.Value }; var operationResult = _id.HasValue ? _logic.Update(model) : _logic.Create(model); if (!operationResult)