diff --git a/src/PriceListTools/ConvertTool.cs b/src/PriceListTools/ConvertTool.cs new file mode 100644 index 0000000..4c95988 --- /dev/null +++ b/src/PriceListTools/ConvertTool.cs @@ -0,0 +1,22 @@ +namespace RehauSku.PriceListTools +{ + internal class ConvertTool : PriceListTool + { + private Source Current; + + public void GetCurrent() + { + Current = new Source(ExcelApp.ActiveWorkbook); + } + + public void FillTarget() + { + ExcelApp.ScreenUpdating = false; + FillColumn(Current.SkuAmount, TargetFile.amountCell.Column); + FilterByAmount(); + ExcelApp.ScreenUpdating = true; + + Forms.Dialog.SaveWorkbookAs(); + } + } +} \ No newline at end of file diff --git a/src/PriceListTools/PriceListTool.cs b/src/PriceListTools/PriceListTool.cs index c8df005..9685c83 100644 --- a/src/PriceListTools/PriceListTool.cs +++ b/src/PriceListTools/PriceListTool.cs @@ -2,31 +2,9 @@ using Microsoft.Office.Interop.Excel; using System; using System.Collections.Generic; -using System.Linq; namespace RehauSku.PriceListTools { - internal class ConvertTool : PriceListTool - { - private Source Current; - - public void GetCurrent() - { - Current = new Source(ExcelApp.ActiveWorkbook); - } - - public void FillTarget() - { - ExcelApp.ScreenUpdating = false; - FillColumn(Current.SkuAmount, TargetFile.amountCell.Column); - FilterByAmount(); - ExcelApp.ScreenUpdating = true; - - Forms.Dialog.SaveWorkbookAs(); - } - } - - internal abstract class PriceListTool { protected private Application ExcelApp = (Application)ExcelDnaUtil.Application;