diff options
author | Sergey Chebotar <s.chebotar@gmail.com> | 2022-04-01 17:40:50 +0300 |
---|---|---|
committer | Sergey Chebotar <s.chebotar@gmail.com> | 2022-04-01 17:40:50 +0300 |
commit | 64240ee46c350b49ff06294ab3c908c99527a23d (patch) | |
tree | 7b9d89c01dcedeeb621f02e485d06a163a752000 /src/Interface/Dialog.cs | |
parent | 84eab9425c9fbf27ff50a3bc314966babd1e960c (diff) |
Delete SaveAsDialog method depricated
Diffstat (limited to 'src/Interface/Dialog.cs')
-rw-r--r-- | src/Interface/Dialog.cs | 17 |
1 files changed, 0 insertions, 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); - } - } - } } } |