aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2022-04-01 17:40:50 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2022-04-01 17:40:50 +0300
commit64240ee46c350b49ff06294ab3c908c99527a23d (patch)
tree7b9d89c01dcedeeb621f02e485d06a163a752000
parent84eab9425c9fbf27ff50a3bc314966babd1e960c (diff)
Delete SaveAsDialog method depricated
-rw-r--r--src/Interface/Dialog.cs17
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);
- }
- }
- }
}
}