From 5a45c59b92c885cf20c5c69b1769273f3a124530 Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Sat, 5 Feb 2022 13:04:18 +0300 Subject: Remove Selection check --- src/PriceListTools/ExportTool.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/PriceListTools') 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 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() -- cgit v1.2.3