Delete SaveAsDialog method depricated

This commit is contained in:
Sergey Chebotar 2022-04-01 17:40:50 +03:00
parent 84eab9425c
commit 64240ee46c

View File

@ -36,22 +36,5 @@ namespace RehauSku.Interface
else return null; 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);
}
}
}
} }
} }