aboutsummaryrefslogtreecommitdiff
path: root/src/AddIn/WorksheetExtensions.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/AddIn/WorksheetExtensions.cs')
-rw-r--r--src/AddIn/WorksheetExtensions.cs41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/AddIn/WorksheetExtensions.cs b/src/AddIn/WorksheetExtensions.cs
deleted file mode 100644
index b07e2c1..0000000
--- a/src/AddIn/WorksheetExtensions.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-using Microsoft.Office.Interop.Excel;
-using RhSolutions.PriceListTools;
-using System.Linq;
-
-namespace RhSolutions
-{
- public static class WorksheetExtensions
- {
- public static bool IsRehauSource(this Worksheet worksheet)
- {
- Range amountCell;
- Range skuCell;
- Range groupCell;
- Range nameCell;
-
- Range[] cells = new[]
- {
- amountCell = worksheet.Cells.Find(PriceListHeaders.Amount),
- skuCell = worksheet.Cells.Find(PriceListHeaders.Sku),
- groupCell = worksheet.Cells.Find(PriceListHeaders.Group),
- nameCell = worksheet.Cells.Find(PriceListHeaders.Name)
- };
-
- return cells.All(x => x != null);
- }
-
- public static void AddValue(this Range range, double value)
- {
- if (range.Value2 == null)
- {
- range.Value2 = value;
- }
-
- else
- {
- range.Value2 += value;
- }
- }
- }
-}
-