diff options
author | Sergey Chebotar <s.chebotar@gmail.com> | 2021-12-08 14:38:23 +0300 |
---|---|---|
committer | Sergey Chebotar <s.chebotar@gmail.com> | 2021-12-08 14:38:23 +0300 |
commit | 8a869e73fb1873b1f85203b7a4a18dc8a2325a11 (patch) | |
tree | 75664c807edbd0901cfc8adb9fca44724cb1452f /Source/ExcelDNA/AddIn.cs | |
parent | 875fc1ef72d35e66cef04697dc947f80c4bcb87c (diff) |
Rename dir ExcelDNA -> AddIn
Diffstat (limited to 'Source/ExcelDNA/AddIn.cs')
-rw-r--r-- | Source/ExcelDNA/AddIn.cs | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/Source/ExcelDNA/AddIn.cs b/Source/ExcelDNA/AddIn.cs deleted file mode 100644 index 3c82406..0000000 --- a/Source/ExcelDNA/AddIn.cs +++ /dev/null @@ -1,53 +0,0 @@ -using ExcelDna.Integration; -using ExcelDna.Registration; -using Microsoft.Win32; -using System.Net.Http; - -namespace RehauSku.Assist -{ - public enum ResponseOrder - { - Default, - Relevance, - Name, - Price, - Series - } - - public class AddIn : IExcelAddIn - { - public static readonly HttpClient httpClient = new HttpClient(); - public static ResponseOrder responseOrder; - public static string priceListPath; - - public void AutoOpen() - { - RegisterFunctions(); - GetRegistryKeys(); - } - - public void AutoClose() - { - - } - - void RegisterFunctions() - { - ExcelRegistration.GetExcelFunctions() - .ProcessAsyncRegistrations(nativeAsyncIfAvailable: false) - .RegisterFunctions(); - } - - void GetRegistryKeys() - { - RegistryKey addInKeys = Registry - .CurrentUser - .OpenSubKey("SOFTWARE") - .OpenSubKey("REHAU") - .OpenSubKey("SkuAssist"); - - responseOrder = (ResponseOrder)addInKeys.GetValue("ResponseOrder"); - priceListPath = (string)addInKeys.GetValue("PriceListPath"); - } - } -} |