Release 0.1.0
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Jens True 2021-07-17 15:06:25 +02:00
parent d0e29cda57
commit 7eeb0e102a
3 changed files with 30 additions and 3 deletions

@ -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;
}
}

@ -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 = "";
}
}
}
}

@ -28,7 +28,7 @@
<ProductName>Tidstagning</ProductName>
<PublisherName>LEAX</PublisherName>
<OpenBrowserOnPublish>false</OpenBrowserOnPublish>
<ApplicationRevision>26</ApplicationRevision>
<ApplicationRevision>27</ApplicationRevision>
<ApplicationVersion>1.1.2.%2a</ApplicationVersion>
<UseApplicationTrust>true</UseApplicationTrust>
<CreateDesktopShortcut>true</CreateDesktopShortcut>
@ -63,7 +63,7 @@
<ManifestKeyFile>Tidstagning_TemporaryKey.pfx</ManifestKeyFile>
</PropertyGroup>
<PropertyGroup>
<GenerateManifests>false</GenerateManifests>
<GenerateManifests>true</GenerateManifests>
</PropertyGroup>
<PropertyGroup>
<SignManifests>false</SignManifests>