aboutsummaryrefslogtreecommitdiff
path: root/src/AddIn/AddIn.cs
diff options
context:
space:
mode:
authorSerghei Cebotari <51533848+schebotar@users.noreply.github.com>2022-02-05 13:18:18 +0300
committerGitHub <noreply@github.com>2022-02-05 13:18:18 +0300
commitad7234fda7927c45e5ca457facae71a4b9be6b31 (patch)
treed9fc89b0e02a5fdc92d54674b7b48ad2d10859e4 /src/AddIn/AddIn.cs
parent180807d749f4eb3a16c1f136d42b90ea2945008f (diff)
parenteb6a28b955b5b179bd40f21dcf1daa6f9337765f (diff)
Merge pull request #15 from schebotar/dev
Dev
Diffstat (limited to 'src/AddIn/AddIn.cs')
-rw-r--r--src/AddIn/AddIn.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/AddIn/AddIn.cs b/src/AddIn/AddIn.cs
index 93d8aec..b532bfb 100644
--- a/src/AddIn/AddIn.cs
+++ b/src/AddIn/AddIn.cs
@@ -5,10 +5,9 @@ using Microsoft.Office.Interop.Excel;
using System.Net.Http;
using System.Runtime.Caching;
-
namespace RehauSku
{
- public enum ResponseOrder
+ enum ResponseOrder
{
Default,
Relevance,
@@ -17,7 +16,7 @@ namespace RehauSku
Series
}
- public class AddIn : IExcelAddIn
+ class AddIn : IExcelAddIn
{
public static HttpClient httpClient;
public static MemoryCache memoryCache;
@@ -27,16 +26,18 @@ namespace RehauSku
{
httpClient = new HttpClient();
memoryCache = new MemoryCache("RehauSku");
+ Excel = (Application)ExcelDnaUtil.Application;
RegisterFunctions();
IntelliSenseServer.Install();
RegistryUtil.Initialize();
- Excel = (Application)ExcelDnaUtil.Application;
+ EventsUtil.Initialize();
}
public void AutoClose()
{
IntelliSenseServer.Uninstall();
RegistryUtil.Uninitialize();
+ EventsUtil.Uninitialize();
memoryCache.Dispose();
}