From 63875c64d0acec2b16ccc3c4119ec64af5e6b39d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=BB=D1=8C=D1=8F?= <Илья@WIN-RANNDDD> Date: Mon, 12 Feb 2024 13:09:25 +0400 Subject: [PATCH] =?UTF-8?q?Revert=20"=D0=A4=D0=B8=D0=BA=D1=81=20=D1=84?= =?UTF-8?q?=D0=BE=D1=80=D0=BC=D1=8B=20=D0=BA=D0=BE=D0=BC=D0=BF=D0=BE=D0=BD?= =?UTF-8?q?=D0=B5=D0=BD=D1=82=D0=B0=20=D0=B8=20=D0=B8=D1=81=D0=BF=D1=80?= =?UTF-8?q?=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BF=D1=80=D0=BE?= =?UTF-8?q?=D0=B1=D0=BB=D0=B5=D0=BC=D1=8B=20=D1=81=20=D0=BE=D0=B1=D0=BD?= =?UTF-8?q?=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC=20=D0=BC=D0=B0?= =?UTF-8?q?=D0=B3=D0=B0=D0=B7=D0=B8=D0=BD=D0=B0"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 1b18777f228b55ec4b598ef6cc2ac4a0621b90d7. --- IceCreamShop/IceCreamShopView/FormComponent.Designer.cs | 1 - IceCreamShop/IceCreamShopView/FormShop.cs | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) 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)