From eaf3ebaa9489462e3d663c93df7a9bc34011464c Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Thu, 24 Mar 2022 06:59:31 +0300 Subject: Turn off save as file dialog at the end of tool process. Version update. --- src/Interface/Dialog.cs | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/Interface/Dialog.cs') 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); - } - } - } } } -- cgit v1.2.3