This commit is contained in:
parent
d0e29cda57
commit
7eeb0e102a
11
Tidstagning/ConfigUI.Designer.cs
generated
11
Tidstagning/ConfigUI.Designer.cs
generated
@ -48,6 +48,7 @@ namespace Tidstagning
|
|||||||
this.label3 = new System.Windows.Forms.Label();
|
this.label3 = new System.Windows.Forms.Label();
|
||||||
this.comboBoxBaudRate = new System.Windows.Forms.ComboBox();
|
this.comboBoxBaudRate = new System.Windows.Forms.ComboBox();
|
||||||
this.panelRelaySettings = new System.Windows.Forms.Panel();
|
this.panelRelaySettings = new System.Windows.Forms.Panel();
|
||||||
|
this.textBox3 = new System.Windows.Forms.TextBox();
|
||||||
this.panelRelaySettings.SuspendLayout();
|
this.panelRelaySettings.SuspendLayout();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
@ -158,6 +159,7 @@ namespace Tidstagning
|
|||||||
this.textBox1.Name = "textBox1";
|
this.textBox1.Name = "textBox1";
|
||||||
this.textBox1.Size = new System.Drawing.Size(100, 20);
|
this.textBox1.Size = new System.Drawing.Size(100, 20);
|
||||||
this.textBox1.TabIndex = 4;
|
this.textBox1.TabIndex = 4;
|
||||||
|
this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
|
||||||
//
|
//
|
||||||
// label5
|
// label5
|
||||||
//
|
//
|
||||||
@ -211,6 +213,7 @@ namespace Tidstagning
|
|||||||
//
|
//
|
||||||
// panelRelaySettings
|
// panelRelaySettings
|
||||||
//
|
//
|
||||||
|
this.panelRelaySettings.Controls.Add(this.textBox3);
|
||||||
this.panelRelaySettings.Controls.Add(this.textBox2);
|
this.panelRelaySettings.Controls.Add(this.textBox2);
|
||||||
this.panelRelaySettings.Controls.Add(this.label5);
|
this.panelRelaySettings.Controls.Add(this.label5);
|
||||||
this.panelRelaySettings.Controls.Add(this.textBox1);
|
this.panelRelaySettings.Controls.Add(this.textBox1);
|
||||||
@ -223,6 +226,13 @@ namespace Tidstagning
|
|||||||
this.panelRelaySettings.Size = new System.Drawing.Size(386, 68);
|
this.panelRelaySettings.Size = new System.Drawing.Size(386, 68);
|
||||||
this.panelRelaySettings.TabIndex = 11;
|
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
|
// ConfigUI
|
||||||
//
|
//
|
||||||
this.AcceptButton = this.buttonSave;
|
this.AcceptButton = this.buttonSave;
|
||||||
@ -274,5 +284,6 @@ namespace Tidstagning
|
|||||||
private System.Windows.Forms.Label label3;
|
private System.Windows.Forms.Label label3;
|
||||||
private System.Windows.Forms.ComboBox comboBoxBaudRate;
|
private System.Windows.Forms.ComboBox comboBoxBaudRate;
|
||||||
private System.Windows.Forms.Panel panelRelaySettings;
|
private System.Windows.Forms.Panel panelRelaySettings;
|
||||||
|
private System.Windows.Forms.TextBox textBox3;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -7,11 +7,15 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
namespace Tidstagning
|
namespace Tidstagning
|
||||||
{
|
{
|
||||||
public partial class ConfigUI : Form
|
public partial class ConfigUI : Form
|
||||||
{
|
{
|
||||||
|
|
||||||
|
private String OnCommand = "";
|
||||||
|
private String OffCommand = "";
|
||||||
|
|
||||||
public ConfigUI()
|
public ConfigUI()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
@ -44,5 +48,17 @@ namespace Tidstagning
|
|||||||
{
|
{
|
||||||
panelRelaySettings.Enabled = checkBoxRelay.Enabled;
|
panelRelaySettings.Enabled = checkBoxRelay.Enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void textBox1_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
textBox3.Text = Regex.Unescape(textBox1.Text);
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
textBox3.Text = "";
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
<ProductName>Tidstagning</ProductName>
|
<ProductName>Tidstagning</ProductName>
|
||||||
<PublisherName>LEAX</PublisherName>
|
<PublisherName>LEAX</PublisherName>
|
||||||
<OpenBrowserOnPublish>false</OpenBrowserOnPublish>
|
<OpenBrowserOnPublish>false</OpenBrowserOnPublish>
|
||||||
<ApplicationRevision>26</ApplicationRevision>
|
<ApplicationRevision>27</ApplicationRevision>
|
||||||
<ApplicationVersion>1.1.2.%2a</ApplicationVersion>
|
<ApplicationVersion>1.1.2.%2a</ApplicationVersion>
|
||||||
<UseApplicationTrust>true</UseApplicationTrust>
|
<UseApplicationTrust>true</UseApplicationTrust>
|
||||||
<CreateDesktopShortcut>true</CreateDesktopShortcut>
|
<CreateDesktopShortcut>true</CreateDesktopShortcut>
|
||||||
@ -63,7 +63,7 @@
|
|||||||
<ManifestKeyFile>Tidstagning_TemporaryKey.pfx</ManifestKeyFile>
|
<ManifestKeyFile>Tidstagning_TemporaryKey.pfx</ManifestKeyFile>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<GenerateManifests>false</GenerateManifests>
|
<GenerateManifests>true</GenerateManifests>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<SignManifests>false</SignManifests>
|
<SignManifests>false</SignManifests>
|
||||||
|
Loading…
Reference in New Issue
Block a user