Added broadcast
This commit is contained in:
@@ -152,7 +152,7 @@ namespace ErgometerApplication
|
|||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.ClientSize = new System.Drawing.Size(700, 500);
|
this.ClientSize = new System.Drawing.Size(700, 500);
|
||||||
this.MinimumSize = new System.Drawing.Size(550, 450);
|
this.MinimumSize = new System.Drawing.Size(550, 550);
|
||||||
this.Controls.Add(this.panelTopBar);
|
this.Controls.Add(this.panelTopBar);
|
||||||
this.Controls.Add(this.panelLogin);
|
this.Controls.Add(this.panelLogin);
|
||||||
this.Controls.Add(this.panelClientContainer);
|
this.Controls.Add(this.panelClientContainer);
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ namespace ErgometerApplication
|
|||||||
if (password.Length > 0)
|
if (password.Length > 0)
|
||||||
{
|
{
|
||||||
string error = "";
|
string error = "";
|
||||||
bool connect = MainClient.Connect("COM3", username, password, out error);
|
bool connect = MainClient.Connect(SerialPort.GetPortNames()[0], username, password, out error);
|
||||||
|
|
||||||
if (connect)
|
if (connect)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user