From 3224a8967e4b2252f25d12dcaaa7d2c4acc87875 Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Sat, 12 Feb 2022 16:08:01 +0300 Subject: [PATCH] Refactoring --- src/PriceListTools/AbstractTool.cs | 6 ++---- src/PriceListTools/ConvertTool.cs | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/PriceListTools/AbstractTool.cs b/src/PriceListTools/AbstractTool.cs index af60d0d..c43d06c 100644 --- a/src/PriceListTools/AbstractTool.cs +++ b/src/PriceListTools/AbstractTool.cs @@ -1,17 +1,15 @@ -using ExcelDna.Integration; -using Microsoft.Office.Interop.Excel; +using Microsoft.Office.Interop.Excel; using RehauSku.Interface; using System; using System.Collections.Generic; using System.Linq; -using Application = Microsoft.Office.Interop.Excel.Application; using ProgressBar = RehauSku.Interface.ProgressBar; namespace RehauSku.PriceListTools { internal abstract class AbstractTool { - protected Application ExcelApp = (Application)ExcelDnaUtil.Application; + protected Application ExcelApp = AddIn.Excel; protected TargetPriceList TargetFile { get; set; } protected ResultBar ResultBar { get; set; } protected ProgressBar ProgressBar { get; set; } diff --git a/src/PriceListTools/ConvertTool.cs b/src/PriceListTools/ConvertTool.cs index fc5850f..abf7e39 100644 --- a/src/PriceListTools/ConvertTool.cs +++ b/src/PriceListTools/ConvertTool.cs @@ -1,5 +1,4 @@ using RehauSku.Interface; -using System; namespace RehauSku.PriceListTools {