From 64240ee46c350b49ff06294ab3c908c99527a23d Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Fri, 1 Apr 2022 17:40:50 +0300 Subject: [PATCH] Delete SaveAsDialog method depricated --- src/Interface/Dialog.cs | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/Interface/Dialog.cs b/src/Interface/Dialog.cs index e6c7955..95d676f 100644 --- a/src/Interface/Dialog.cs +++ b/src/Interface/Dialog.cs @@ -36,22 +36,5 @@ namespace RehauSku.Interface else return null; } } - - public static void SaveWorkbookAs() - { - Workbook workbook = AddIn.Excel.ActiveWorkbook; - - using (SaveFileDialog dialog = new SaveFileDialog()) - { - dialog.FileName = workbook.Name; - dialog.Filter = "Файлы Excel (*.xls;*.xlsx;*.xlsm)|*.xls;*.xlsx;*.xlsm"; - - if (dialog.ShowDialog() == DialogResult.OK) - { - string fileName = dialog.FileName; - workbook.SaveAs(fileName); - } - } - } } }