style change
This commit is contained in:
@@ -73,7 +73,7 @@ namespace ErgometerDoctorApplication
|
||||
flowlayout = new FlowLayoutPanel();
|
||||
|
||||
flowlayout.Dock = DockStyle.Fill;
|
||||
flowlayout.BackColor = System.Drawing.Color.DarkGray;
|
||||
flowlayout.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
flowlayout.Location = new System.Drawing.Point(0, 0);
|
||||
flowlayout.Name = "flowlayout";
|
||||
flowlayout.Padding = new Padding(15);
|
||||
@@ -97,7 +97,7 @@ namespace ErgometerDoctorApplication
|
||||
foreach (KeyValuePair<int, string> pair in actives)
|
||||
{
|
||||
|
||||
flowlayout.Controls.Add(new SessionPanel(pair.Key, pair.Value, true));
|
||||
flowlayout.Controls.Add(new SessionPanel(pair.Key, pair.Value, true,0));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace ErgometerDoctorApplication
|
||||
flowlayout = new FlowLayoutPanel();
|
||||
|
||||
flowlayout.Dock = DockStyle.Fill;
|
||||
flowlayout.BackColor = System.Drawing.Color.DarkGray;
|
||||
flowlayout.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
flowlayout.Location = new System.Drawing.Point(0, 0);
|
||||
flowlayout.Name = "flowlayout";
|
||||
flowlayout.Padding = new Padding(15);
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace ErgometerDoctorApplication
|
||||
class SessionPanel : Panel
|
||||
{
|
||||
private int Session;
|
||||
private string Name;
|
||||
private string name;
|
||||
private bool IsNew;
|
||||
private double timestamp;
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace ErgometerDoctorApplication
|
||||
{
|
||||
this.timestamp = timestamp;
|
||||
Session = session;
|
||||
Name = name;
|
||||
this.name = name;
|
||||
IsNew = isNew;
|
||||
|
||||
this.Location = new System.Drawing.Point(0, 0);
|
||||
@@ -80,9 +80,9 @@ namespace ErgometerDoctorApplication
|
||||
private void SessionPanel_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
if(IsNew)
|
||||
MainClient.StartNewClient(Name, Session);
|
||||
MainClient.StartNewClient(name, Session);
|
||||
else
|
||||
MainClient.StartOldClient(Name, Session);
|
||||
MainClient.StartOldClient(name, Session);
|
||||
}
|
||||
|
||||
public System.Windows.Forms.Label labelName;
|
||||
|
||||
Reference in New Issue
Block a user