From 4c86765f3d14ce9ec6c1b7d47ba39640e1e9517a Mon Sep 17 00:00:00 2001 From: gg12 darfren Date: Sun, 24 Mar 2024 15:12:19 +0400 Subject: [PATCH] ... --- IceCreamShop/IceCreamShop/MainForm.cs | 2 +- .../IceCreamShopBusinessLogic/BusinessLogic/ReportLogic.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/IceCreamShop/IceCreamShop/MainForm.cs b/IceCreamShop/IceCreamShop/MainForm.cs index d6f6d8b..3512117 100644 --- a/IceCreamShop/IceCreamShop/MainForm.cs +++ b/IceCreamShop/IceCreamShop/MainForm.cs @@ -189,7 +189,7 @@ Program.ServiceProvider?.GetService(typeof(OrderForm)); using var dialog = new SaveFileDialog { Filter = "docx|*.docx" }; if (dialog.ShowDialog() == DialogResult.OK) { - _reportLogic.SaveComponentsToWordFile(new ReportBindingModel + _reportLogic.SaveIceCreamToWordFile(new ReportBindingModel { FileName = dialog.FileName }); diff --git a/IceCreamShop/IceCreamShopBusinessLogic/BusinessLogic/ReportLogic.cs b/IceCreamShop/IceCreamShopBusinessLogic/BusinessLogic/ReportLogic.cs index 6f47dbf..08903f4 100644 --- a/IceCreamShop/IceCreamShopBusinessLogic/BusinessLogic/ReportLogic.cs +++ b/IceCreamShop/IceCreamShopBusinessLogic/BusinessLogic/ReportLogic.cs @@ -74,7 +74,7 @@ namespace IceCreamShopBusinessLogic.BusinessLogic }) .ToList(); } - public void SaveIceCreamsToWordFile(ReportBindingModel model) + public void SaveIceCreamToWordFile(ReportBindingModel model) { _saveToWord.CreateDoc(new WordInfo {