diff --git a/src/Interface/Dialog.cs b/src/Interface/Dialog.cs index 23f65d7..e6c7955 100644 --- a/src/Interface/Dialog.cs +++ b/src/Interface/Dialog.cs @@ -46,12 +46,7 @@ namespace RehauSku.Interface dialog.FileName = workbook.Name; dialog.Filter = "Файлы Excel (*.xls;*.xlsx;*.xlsm)|*.xls;*.xlsx;*.xlsm"; - if (dialog.ShowDialog() == DialogResult.Cancel) - { - workbook.Close(false); - } - - else + if (dialog.ShowDialog() == DialogResult.OK) { string fileName = dialog.FileName; workbook.SaveAs(fileName);