diff options
author | Sergey Chebotar <s.chebotar@gmail.com> | 2022-02-04 17:13:47 +0300 |
---|---|---|
committer | Sergey Chebotar <s.chebotar@gmail.com> | 2022-02-04 17:13:47 +0300 |
commit | cc96e1ebe7255c7278c70cef0f951103e9844487 (patch) | |
tree | 85f8c6573b5c162c21a0adc192560a4e53732f69 /src/PriceListTools | |
parent | 6e889419e2658a3a80fa00582314f1428f6052e5 (diff) |
Implement Enable/Disable tools buttons events
Diffstat (limited to 'src/PriceListTools')
-rw-r--r-- | src/PriceListTools/ExportTool.cs | 1 | ||||
-rw-r--r-- | src/PriceListTools/SourcePriceList.cs | 6 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/PriceListTools/ExportTool.cs b/src/PriceListTools/ExportTool.cs index b36bf09..82fd86a 100644 --- a/src/PriceListTools/ExportTool.cs +++ b/src/PriceListTools/ExportTool.cs @@ -1,5 +1,4 @@ using Microsoft.Office.Interop.Excel; -using RehauSku.Assistant; using System; using System.Collections.Generic; using RehauSku.Interface; diff --git a/src/PriceListTools/SourcePriceList.cs b/src/PriceListTools/SourcePriceList.cs index ec9025d..01637f8 100644 --- a/src/PriceListTools/SourcePriceList.cs +++ b/src/PriceListTools/SourcePriceList.cs @@ -4,10 +4,10 @@ using System; using System.Collections.Generic; using System.Linq; using RehauSku.Interface; -using RehauSku.Assistant; namespace RehauSku.PriceListTools { + internal class SourcePriceList : AbstractPriceList { public Dictionary<Position, double> PositionAmount { get; private set; } @@ -22,7 +22,7 @@ namespace RehauSku.PriceListTools Sheet = workbook.ActiveSheet; Name = workbook.Name; - Range[] cells = new [] + Range[] cells = new[] { amountCell = Sheet.Cells.Find(amountHeader), skuCell = Sheet.Cells.Find(skuHeader), @@ -30,7 +30,7 @@ namespace RehauSku.PriceListTools nameCell = Sheet.Cells.Find(nameHeader) }; - if (cells.Any(x => x == null)) + if (cells.Any(x => x == null)) { throw new ArgumentException($"Файл {Name} не распознан"); } |