diff --git a/UI/Panels/Device/MFEncoderPanel.Designer.cs b/UI/Panels/Device/MFEncoderPanel.Designer.cs
index fd329125..a45160ca 100644
--- a/UI/Panels/Device/MFEncoderPanel.Designer.cs
+++ b/UI/Panels/Device/MFEncoderPanel.Designer.cs
@@ -30,6 +30,7 @@ private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MFEncoderPanel));
this.groupBox1 = new System.Windows.Forms.GroupBox();
+ this.mfSwapButton = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.mfRightPinComboBox = new System.Windows.Forms.ComboBox();
this.mfPinLabel = new System.Windows.Forms.Label();
@@ -45,6 +46,7 @@ private void InitializeComponent()
//
// groupBox1
//
+ this.groupBox1.Controls.Add(this.mfSwapButton);
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Controls.Add(this.mfRightPinComboBox);
this.groupBox1.Controls.Add(this.mfPinLabel);
@@ -53,6 +55,13 @@ private void InitializeComponent()
this.groupBox1.Name = "groupBox1";
this.groupBox1.TabStop = false;
//
+ // mfSwapButton
+ //
+ resources.ApplyResources(this.mfSwapButton, "mfSwapButton");
+ this.mfSwapButton.Name = "mfSwapButton";
+ this.mfSwapButton.UseVisualStyleBackColor = true;
+ this.mfSwapButton.Click += new System.EventHandler(this.mfSwapButton_Click);
+ //
// label1
//
resources.ApplyResources(this.label1, "label1");
@@ -140,5 +149,6 @@ private void InitializeComponent()
private System.Windows.Forms.ComboBox mfRightPinComboBox;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.ComboBox mfEncoderTypeComboBox;
+ private System.Windows.Forms.Button mfSwapButton;
}
}
diff --git a/UI/Panels/Device/MFEncoderPanel.cs b/UI/Panels/Device/MFEncoderPanel.cs
index 28c85b40..9170a5b1 100644
--- a/UI/Panels/Device/MFEncoderPanel.cs
+++ b/UI/Panels/Device/MFEncoderPanel.cs
@@ -82,5 +82,11 @@ private void value_Changed(object sender, EventArgs e)
if (Changed != null)
Changed(encoder, new EventArgs());
}
+
+ private void mfSwapButton_Click(object sender, EventArgs e)
+ {
+ (encoder.PinLeft, encoder.PinRight) = (encoder.PinRight, encoder.PinLeft);
+ UpdateFreePinsInDropDowns();
+ }
}
}
diff --git a/UI/Panels/Device/MFEncoderPanel.resx b/UI/Panels/Device/MFEncoderPanel.resx
index ae878a34..e99cb119 100644
--- a/UI/Panels/Device/MFEncoderPanel.resx
+++ b/UI/Panels/Device/MFEncoderPanel.resx
@@ -118,13 +118,37 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ 127, 41
+
+
+ 42, 21
+
+
+
+ 2
+
+
+ Swap
+
+
+ mfSwapButton
+
+
+ System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ groupBox1
+
+
+ 0
+
- 79, 22
+ 70, 22
50, 16
-
16
@@ -141,10 +165,10 @@
groupBox1
- 0
+ 1
- 82, 41
+ 73, 41
2
@@ -165,7 +189,7 @@
groupBox1
- 1
+ 2
15, 22
@@ -189,7 +213,7 @@
groupBox1
- 2
+ 3
18, 41
@@ -213,7 +237,7 @@
groupBox1
- 3
+ 4