From 54fc3320e7d64d7903b4d091fe0d5c15df01fd78 Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Sun, 26 Dec 2021 18:22:32 +0300 Subject: Move to /src --- Source/Forms/Dialog.cs | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 Source/Forms/Dialog.cs (limited to 'Source/Forms/Dialog.cs') diff --git a/Source/Forms/Dialog.cs b/Source/Forms/Dialog.cs deleted file mode 100644 index 170cc81..0000000 --- a/Source/Forms/Dialog.cs +++ /dev/null @@ -1,46 +0,0 @@ -using System.Collections.Generic; -using System.Windows.Forms; - -namespace RehauSku.Forms -{ - static class Dialog - { - public static string GetFilePath() - { - string filePath = string.Empty; - - using (OpenFileDialog dialog = new OpenFileDialog()) - { - dialog.Filter = "Файлы Excel (*.xls;*.xlsx;*.xlsm)|*.xls;*.xlsx;*.xlsm"; - - if (dialog.ShowDialog() == DialogResult.OK) - { - filePath = dialog.FileName; - } - } - - return filePath; - } - - public static string[] GetMultiplyFiles() - { - List fileNames = new List(); - - using (OpenFileDialog dialog = new OpenFileDialog()) - { - dialog.Filter = "Файлы Excel (*.xls;*.xlsx;*.xlsm)|*.xls;*.xlsx;*.xlsm"; - dialog.Multiselect = true; - - if (dialog.ShowDialog() == DialogResult.OK) - { - foreach (string file in dialog.FileNames) - { - fileNames.Add(file); - } - } - } - - return fileNames.ToArray(); - } - } -} -- cgit v1.2.3