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,14 +1,29 @@
namespace RehauSku.PriceListTools
using System;
namespace RehauSku.PriceListTools
{
internal class ConvertTool : PriceListTool
{
private Source Current;
public void GetCurrent()
{
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()
{
ExcelApp.ScreenUpdating = false;

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" />