Edit dialog

This commit is contained in:
Sergey Chebotar 2022-01-28 09:27:19 +03:00
parent dca27ebcc3
commit 539d22fb1e
2 changed files with 18 additions and 2 deletions

View File

@ -1,4 +1,6 @@
namespace RehauSku.PriceListTools
using System;
namespace RehauSku.PriceListTools
{
internal class ConvertTool : PriceListTool
{
@ -6,7 +8,20 @@
public void GetCurrent()
{
Current = new Source(ExcelApp.ActiveWorkbook);
try
{
Current = new Source(ExcelApp.ActiveWorkbook);
}
catch (Exception exception)
{
System.Windows.Forms.MessageBox.Show
(exception.Message,
"Ошибка распознавания",
System.Windows.Forms.MessageBoxButtons.OK,
System.Windows.Forms.MessageBoxIcon.Information);
throw exception;
}
}
public void FillTarget()

View File

@ -122,6 +122,7 @@
<Compile Include="Assistant\RequestModifier.cs" />
<Compile Include="Assistant\SkuExtensions.cs" />
<Compile Include="PriceListTools\CombineTool.cs" />
<Compile Include="PriceListTools\ConvertTool.cs" />
<Compile Include="PriceListTools\PriceListTool.cs" />
<Compile Include="PriceListTools\MergeTool.cs" />
<Compile Include="PriceListTools\PriceList.cs" />