From 10e6a108f974b3e2541ec322f99e60ec5ab7d9f7 Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Mon, 4 Jul 2022 09:21:44 +0300 Subject: Remove Response Order setting --- src/AddIn/RegistryUtil.cs | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'src/AddIn/RegistryUtil.cs') diff --git a/src/AddIn/RegistryUtil.cs b/src/AddIn/RegistryUtil.cs index a13e941..54e071e 100644 --- a/src/AddIn/RegistryUtil.cs +++ b/src/AddIn/RegistryUtil.cs @@ -9,14 +9,12 @@ namespace RehauSku static class RegistryUtil { private static string priceListPath; - private static int? storeResponseOrder; private static RegistryKey RootKey { get; set; } public static void Initialize() { RootKey = Registry.CurrentUser.CreateSubKey(@"SOFTWARE\REHAU\SkuAssist"); priceListPath = RootKey.GetValue("PriceListPath") as string; - storeResponseOrder = RootKey.GetValue("StoreResponseOrder") as int?; } public static void Uninitialize() @@ -71,23 +69,5 @@ namespace RehauSku { return Path.GetFileName(priceListPath); } - - public static ResponseOrder StoreResponseOrder - { - get - { - if (storeResponseOrder == null) - { - RootKey.SetValue("StoreResponseOrder", (int)ResponseOrder.Default); - storeResponseOrder = (int)ResponseOrder.Default; - return (ResponseOrder)storeResponseOrder.Value; - } - - else - { - return (ResponseOrder)storeResponseOrder.Value; - } - } - } } } -- cgit v1.2.3