This commit is contained in:
2015-10-08 18:30:12 +02:00
parent f5dd70db71
commit 3d1bc8ebb9
4 changed files with 15 additions and 17 deletions
@@ -57,7 +57,7 @@ namespace ErgometerApplication
//
// updateTimer
//
this.updateTimer.Interval = 350;
this.updateTimer.Interval = 800;
this.updateTimer.Tick += new System.EventHandler(this.updateTimer_Tick);
//
// panelClientContainer
@@ -176,7 +176,6 @@ namespace ErgometerApplication
#endregion
private System.Windows.Forms.Timer updateTimer;
private System.Windows.Forms.Timer writeTimer;
private System.Windows.Forms.Panel panelClientContainer;
private PanelClientChat panelClientChat;
private PanelGraphView panelGraphView;
@@ -53,10 +53,20 @@ namespace ErgometerApplication
}
if (password.Length >= 8)
{
MainClient.Connect(SerialPort.GetPortNames()[0], username, password);
panelClientContainer.BringToFront();
this.labelUsername.Text = panelLogin.textBoxUsername.Text;
panelTopBar.Visible = true;
/*
if(SerialPort.GetPortNames().Length <= 0)
{
panelLogin.lblVerification.Text = "De Ergometer is niet gevonden.";
panelLogin.lblVerification.ForeColor = Color.Red;
panelLogin.lblVerification.Visible = true;
}
else
{ */
MainClient.Connect(SerialPort.GetPortNames()[0], username, password);
panelClientContainer.BringToFront();
this.labelUsername.Text = panelLogin.textBoxUsername.Text;
panelTopBar.Visible = true;
//}
}
}
else
@@ -1,11 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>