From 0ccbf29382b43d19f7ea0d1f4b5841149137842d Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Fri, 23 Dec 2022 21:10:43 +0300 Subject: Return to ResetStatusBar Excel macro function --- src/AddIn/AddIn.cs | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 src/AddIn/AddIn.cs (limited to 'src/AddIn/AddIn.cs') diff --git a/src/AddIn/AddIn.cs b/src/AddIn/AddIn.cs deleted file mode 100644 index 2aa71c7..0000000 --- a/src/AddIn/AddIn.cs +++ /dev/null @@ -1,36 +0,0 @@ -using ExcelDna.Integration; -using ExcelDna.IntelliSense; -using Microsoft.Office.Interop.Excel; -using RhSolutions.Services; -using System.Net; -using System.Net.Http; - -namespace RhSolutions.AddIn -{ - class RhSolutionsAddIn : IExcelAddIn - { - public static Application Excel; - public static HttpClient httpClient; - - public void AutoOpen() - { - Excel = (Application)ExcelDnaUtil.Application; - httpClient = new HttpClient(); - IntelliSenseServer.Install(); - RegistryUtil.Initialize(); - EventsUtil.Initialize(); - - ServicePointManager.SecurityProtocol = - SecurityProtocolType.Tls12 | - SecurityProtocolType.Tls11 | - SecurityProtocolType.Tls; - } - - public void AutoClose() - { - IntelliSenseServer.Uninstall(); - RegistryUtil.Uninitialize(); - EventsUtil.Uninitialize(); - } - } -} -- cgit v1.2.3