aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Interface/RibbonController.cs2
-rw-r--r--src/PriceListTools/ExportTool.cs7
2 files changed, 1 insertions, 8 deletions
diff --git a/src/Interface/RibbonController.cs b/src/Interface/RibbonController.cs
index 7d70391..bc038d1 100644
--- a/src/Interface/RibbonController.cs
+++ b/src/Interface/RibbonController.cs
@@ -87,13 +87,11 @@ namespace RehauSku.Interface
}
}
-
public void OnExportPressed(IRibbonControl control)
{
try
{
ExportTool exportTool = new ExportTool();
- exportTool.TryGetSelection();
exportTool.OpenNewPrice();
exportTool.FillTarget();
}
diff --git a/src/PriceListTools/ExportTool.cs b/src/PriceListTools/ExportTool.cs
index 82fd86a..f341671 100644
--- a/src/PriceListTools/ExportTool.cs
+++ b/src/PriceListTools/ExportTool.cs
@@ -10,14 +10,9 @@ namespace RehauSku.PriceListTools
private Dictionary<Position, double> PositionAmount;
private Range Selection;
- public void TryGetSelection()
+ public ExportTool()
{
Selection = ExcelApp.Selection;
-
- if (Selection == null || Selection.Columns.Count != 2)
- {
- throw new Exception("Неверный диапазон");
- }
}
public void FillTarget()