Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
henkmollema committed Oct 29, 2014
2 parents a3f90fe + 25b4f76 commit 4cc1a1d
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 33 deletions.
58 changes: 31 additions & 27 deletions src/Driftr/DriftR.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 8 additions & 6 deletions src/Driftr/Driftr.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,10 @@ public Driftr()
Init(screen.Size);
pictureBox1.Parent = screen;
pictureBox2.Parent = screen;
//lapTimeRedLabel.Parent = screen;
//lapTimeYellowLabel.Parent = screen;
lapTimeRedLabel.BackColor = Color.FromArgb(31, 161, 1);
lapTimeYellowLabel.BackColor = Color.FromArgb(31, 161, 1);
lapTimeRedLabel2.BackColor = Color.FromArgb(31, 161, 1);
lapTimeYellowLabel2.BackColor = Color.FromArgb(31, 161, 1);

// brandstof
InitTimer();
Expand Down Expand Up @@ -143,16 +145,16 @@ private void DrawScreen()

roundsLabelYellow.Text = lapsYellow.ToString();
roundsLabelRed.Text = lapsRed.ToString();
label1.Text = "";
label2.Text = "";
lapTimeRedLabel2.Text = "";
lapTimeYellowLabel2.Text = "";

foreach (var x in _vehicleLapTimes[_vehicles[0]])
{
label1.Text += x.ToString("mm':'ss':'ff") + Environment.NewLine;
lapTimeRedLabel2.Text += x.ToString("mm':'ss':'ff") + Environment.NewLine;
}
foreach (var x in _vehicleLapTimes[_vehicles[1]])
{
label2.Text += x.ToString("mm':'ss':'ff") + Environment.NewLine;
lapTimeYellowLabel2.Text += x.ToString("mm':'ss':'ff") + Environment.NewLine;
}
}

Expand Down

0 comments on commit 4cc1a1d

Please sign in to comment.