aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2022-01-28 09:16:10 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2022-01-28 09:16:10 +0300
commitdca27ebcc3a8377bfe6f4f56481d321b615c4c24 (patch)
tree6befd8ef5a8b0265324d99ff5819fb950b098581 /src
parent35930ebda47f6f68ad549f8ad67b38c0b9a7f60b (diff)
Move ConvertTool to another file
Diffstat (limited to 'src')
-rw-r--r--src/PriceListTools/ConvertTool.cs22
-rw-r--r--src/PriceListTools/PriceListTool.cs22
2 files changed, 22 insertions, 22 deletions
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;