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 @"
-
+
-
+
@@ -28,14 +27,14 @@ namespace RehauSku.Ribbon
";
}
- public void OnButtonPressed(IRibbonControl control)
+ public void OnExportPressed(IRibbonControl control)
{
using (Exporter dw = new Exporter())
{
if (!dw.IsRangeValid())
{
- MessageBox.Show("Выделен неверный диапазон!",
- "Неверный диапазон",
+ MessageBox.Show("Выделен неверный диапазон!",
+ "Неверный диапазон",
MessageBoxButtons.OK,
MessageBoxIcon.Information);
return;
@@ -48,5 +47,11 @@ namespace RehauSku.Ribbon
}
}
}
+
+
+ public void OnSettingsPressed(IRibbonControl control)
+ {
+ Application.Run(new Settings.SettingsForm());
+ }
}
}
diff --git a/Source/Settings/SettingsForm.Designer.cs b/Source/Settings/SettingsForm.Designer.cs
new file mode 100644
index 0000000..ea14638
--- /dev/null
+++ b/Source/Settings/SettingsForm.Designer.cs
@@ -0,0 +1,46 @@
+namespace RehauSku.Settings
+{
+ partial class SettingsForm
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.SuspendLayout();
+ //
+ // SettingsForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(800, 450);
+ this.Name = "SettingsForm";
+ this.Text = "SettingsForm";
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/Source/Settings/SettingsForm.cs b/Source/Settings/SettingsForm.cs
new file mode 100644
index 0000000..b87ac5c
--- /dev/null
+++ b/Source/Settings/SettingsForm.cs
@@ -0,0 +1,32 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace RehauSku.Settings
+{
+ public partial class SettingsForm : Form
+ {
+ public SettingsForm()
+ {
+ InitializeComponent();
+
+ FormClosing += (sender, eventArgs) =>
+ {
+ MessageBox.Show("ok");
+ };
+
+
+ }
+
+ private void button1_Click(object sender, EventArgs e)
+ {
+
+ }
+ }
+}
diff --git a/Source/Settings/SettingsForm.resx b/Source/Settings/SettingsForm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/Source/Settings/SettingsForm.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file