aboutsummaryrefslogtreecommitdiff
path: root/src/PriceListTools
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2022-01-09 10:49:41 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2022-01-09 10:49:41 +0300
commit379fb6d99673e390e701b0b16e10dbc2d4edb148 (patch)
tree7ae745ba238e050fe6009e2784c845b5d394b196 /src/PriceListTools
parent762127a4aa1ee393f19e08018830bc8ba023c050 (diff)
Add virtual GetSource with no params to abstract pricelist tool
Diffstat (limited to 'src/PriceListTools')
-rw-r--r--src/PriceListTools/AbstractPriceListTool.cs5
-rw-r--r--src/PriceListTools/ExportTool.cs3
2 files changed, 7 insertions, 1 deletions
diff --git a/src/PriceListTools/AbstractPriceListTool.cs b/src/PriceListTools/AbstractPriceListTool.cs
index 04d11af..1aef0be 100644
--- a/src/PriceListTools/AbstractPriceListTool.cs
+++ b/src/PriceListTools/AbstractPriceListTool.cs
@@ -39,6 +39,11 @@ namespace RehauSku.PriceListTools
}
}
+ public virtual void GetSource()
+ {
+ throw new NotImplementedException();
+ }
+
public virtual void GetSource(string[] files)
{
ExcelApp.ScreenUpdating = false;
diff --git a/src/PriceListTools/ExportTool.cs b/src/PriceListTools/ExportTool.cs
index fbafbdd..9a2c5fd 100644
--- a/src/PriceListTools/ExportTool.cs
+++ b/src/PriceListTools/ExportTool.cs
@@ -17,10 +17,11 @@ namespace RehauSku.PriceListTools
Selection = ExcelApp.Selection;
}
- public override void GetSource(string[] files)
+ public override void GetSource()
{
if (Selection != null && Selection.Columns.Count == 2)
FillSkuAmountDict();
+
else throw new Exception("Неверный диапазон");
}