Remove Selection check
This commit is contained in:
parent
880b95f862
commit
5a45c59b92
@ -87,13 +87,11 @@ namespace RehauSku.Interface
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void OnExportPressed(IRibbonControl control)
|
public void OnExportPressed(IRibbonControl control)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
ExportTool exportTool = new ExportTool();
|
ExportTool exportTool = new ExportTool();
|
||||||
exportTool.TryGetSelection();
|
|
||||||
exportTool.OpenNewPrice();
|
exportTool.OpenNewPrice();
|
||||||
exportTool.FillTarget();
|
exportTool.FillTarget();
|
||||||
}
|
}
|
||||||
|
@ -10,14 +10,9 @@ namespace RehauSku.PriceListTools
|
|||||||
private Dictionary<Position, double> PositionAmount;
|
private Dictionary<Position, double> PositionAmount;
|
||||||
private Range Selection;
|
private Range Selection;
|
||||||
|
|
||||||
public void TryGetSelection()
|
public ExportTool()
|
||||||
{
|
{
|
||||||
Selection = ExcelApp.Selection;
|
Selection = ExcelApp.Selection;
|
||||||
|
|
||||||
if (Selection == null || Selection.Columns.Count != 2)
|
|
||||||
{
|
|
||||||
throw new Exception("Неверный диапазон");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void FillTarget()
|
public void FillTarget()
|
||||||
|
Loading…
Reference in New Issue
Block a user