aboutsummaryrefslogtreecommitdiff
path: root/src/PriceListTools/SourceUtil.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/PriceListTools/SourceUtil.cs')
-rw-r--r--src/PriceListTools/SourceUtil.cs41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/PriceListTools/SourceUtil.cs b/src/PriceListTools/SourceUtil.cs
deleted file mode 100644
index 5c575f6..0000000
--- a/src/PriceListTools/SourceUtil.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-using ExcelDna.Integration;
-using Microsoft.Office.Interop.Excel;
-using System;
-using System.Collections.Generic;
-
-namespace RehauSku.PriceListTools
-{
- internal static class SourceUtil
- {
- public static List<Source> GetSourceLists(string[] files)
- {
- var ExcelApp = (Application)ExcelDnaUtil.Application;
-
- List<Source> sourceFiles = new List<Source>();
-
- ExcelApp.ScreenUpdating = false;
- foreach (string file in files)
- {
- Workbook wb = ExcelApp.Workbooks.Open(file);
- try
- {
- Source priceList = new Source(wb);
- sourceFiles.Add(priceList);
- wb.Close();
- }
- catch (Exception ex)
- {
- System.Windows.Forms.MessageBox.Show
- (ex.Message,
- "Ошибка открытия исходного прайс-листа",
- System.Windows.Forms.MessageBoxButtons.OK,
- System.Windows.Forms.MessageBoxIcon.Information);
- wb.Close();
- }
- }
- ExcelApp.ScreenUpdating = true;
-
- return sourceFiles;
- }
- }
-}