From aaaa6b45859e74c791f35e18c220118a54a345ad Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Fri, 17 Dec 2021 09:07:34 +0300 Subject: [PATCH] Create simple base form for settings window --- RehauSku.Assist.csproj | 8 ++ Source/Assistant/HttpClientUtil.cs | 2 +- Source/Ribbon/RibbonController.cs | 17 ++-- Source/Settings/SettingsForm.Designer.cs | 46 +++++++++ Source/Settings/SettingsForm.cs | 32 ++++++ Source/Settings/SettingsForm.resx | 120 +++++++++++++++++++++++ 6 files changed, 218 insertions(+), 7 deletions(-) create mode 100644 Source/Settings/SettingsForm.Designer.cs create mode 100644 Source/Settings/SettingsForm.cs create mode 100644 Source/Settings/SettingsForm.resx diff --git a/RehauSku.Assist.csproj b/RehauSku.Assist.csproj index 6f12a34..1497201 100644 --- a/RehauSku.Assist.csproj +++ b/RehauSku.Assist.csproj @@ -71,6 +71,7 @@ + packages\System.Memory.4.5.4\lib\net461\System.Memory.dll @@ -99,6 +100,7 @@ + @@ -112,6 +114,12 @@ + + Form + + + SettingsForm.cs + diff --git a/Source/Assistant/HttpClientUtil.cs b/Source/Assistant/HttpClientUtil.cs index 16e4287..63be4a8 100644 --- a/Source/Assistant/HttpClientUtil.cs +++ b/Source/Assistant/HttpClientUtil.cs @@ -28,7 +28,7 @@ namespace RehauSku.Assistant baseUri.Path = "/catalogsearch/result/index/"; string cleanedRequest = request.CleanRequest(); - switch (AddIn.StoreResponse) + switch (AddIn.StoreResponseOrder) { case ResponseOrder.Relevance: baseUri.Query = "dir=asc&order=relevance&q=" + cleanedRequest; diff --git a/Source/Ribbon/RibbonController.cs b/Source/Ribbon/RibbonController.cs index 39cf71a..7e15d09 100644 --- a/Source/Ribbon/RibbonController.cs +++ b/Source/Ribbon/RibbonController.cs @@ -10,17 +10,16 @@ namespace RehauSku.Ribbon { public override string GetCustomUI(string RibbonID) { - return @" -