diff --git a/Tidstagning/ConfigUI.Designer.cs b/Tidstagning/ConfigUI.Designer.cs
index 0cb93f0..2b0dc4b 100644
--- a/Tidstagning/ConfigUI.Designer.cs
+++ b/Tidstagning/ConfigUI.Designer.cs
@@ -48,6 +48,7 @@ namespace Tidstagning
this.label3 = new System.Windows.Forms.Label();
this.comboBoxBaudRate = new System.Windows.Forms.ComboBox();
this.panelRelaySettings = new System.Windows.Forms.Panel();
+ this.textBox3 = new System.Windows.Forms.TextBox();
this.panelRelaySettings.SuspendLayout();
this.SuspendLayout();
//
@@ -158,6 +159,7 @@ namespace Tidstagning
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(100, 20);
this.textBox1.TabIndex = 4;
+ this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
//
// label5
//
@@ -211,6 +213,7 @@ namespace Tidstagning
//
// panelRelaySettings
//
+ this.panelRelaySettings.Controls.Add(this.textBox3);
this.panelRelaySettings.Controls.Add(this.textBox2);
this.panelRelaySettings.Controls.Add(this.label5);
this.panelRelaySettings.Controls.Add(this.textBox1);
@@ -223,6 +226,13 @@ namespace Tidstagning
this.panelRelaySettings.Size = new System.Drawing.Size(386, 68);
this.panelRelaySettings.TabIndex = 11;
//
+ // textBox3
+ //
+ this.textBox3.Location = new System.Drawing.Point(20, 44);
+ this.textBox3.Name = "textBox3";
+ this.textBox3.Size = new System.Drawing.Size(100, 20);
+ this.textBox3.TabIndex = 6;
+ //
// ConfigUI
//
this.AcceptButton = this.buttonSave;
@@ -274,5 +284,6 @@ namespace Tidstagning
private System.Windows.Forms.Label label3;
private System.Windows.Forms.ComboBox comboBoxBaudRate;
private System.Windows.Forms.Panel panelRelaySettings;
+ private System.Windows.Forms.TextBox textBox3;
}
}
\ No newline at end of file
diff --git a/Tidstagning/ConfigUI.cs b/Tidstagning/ConfigUI.cs
index d344f7c..89a112b 100644
--- a/Tidstagning/ConfigUI.cs
+++ b/Tidstagning/ConfigUI.cs
@@ -7,11 +7,15 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
-
+using System.Text.RegularExpressions;
namespace Tidstagning
{
public partial class ConfigUI : Form
{
+
+ private String OnCommand = "";
+ private String OffCommand = "";
+
public ConfigUI()
{
InitializeComponent();
@@ -44,5 +48,17 @@ namespace Tidstagning
{
panelRelaySettings.Enabled = checkBoxRelay.Enabled;
}
+
+ private void textBox1_TextChanged(object sender, EventArgs e)
+ {
+ try
+ {
+ textBox3.Text = Regex.Unescape(textBox1.Text);
+ }
+ catch
+ {
+ textBox3.Text = "";
+ }
+ }
}
}
diff --git a/Tidstagning/Tidstagning.csproj b/Tidstagning/Tidstagning.csproj
index 833cb62..e9542fb 100644
--- a/Tidstagning/Tidstagning.csproj
+++ b/Tidstagning/Tidstagning.csproj
@@ -28,7 +28,7 @@
Tidstagning
LEAX
false
- 26
+ 27
1.1.2.%2a
true
true
@@ -63,7 +63,7 @@
Tidstagning_TemporaryKey.pfx
- false
+ true
false