-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Verification view and working web results
- Loading branch information
Showing
42 changed files
with
18,217 additions
and
9,342 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,4 +31,4 @@ public void PersistModel() | |
PersistenceService.Save(Model); | ||
} | ||
} | ||
} | ||
} |
25 changes: 19 additions & 6 deletions
25
src/SportidentLapCounter/Controls/MainForm/MainFormView.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
src/SportidentLapCounter/Controls/VerificationForm/VerificationFormView.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
48 changes: 48 additions & 0 deletions
48
src/SportidentLapCounter/Controls/VerificationForm/VerificationFormView.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
using System.Drawing; | ||
using System.Windows.Forms; | ||
using SportidentLapCounter.DataTypes; | ||
|
||
namespace SportidentLapCounter.Controls.VerificationForm | ||
{ | ||
public partial class VerificationFormView : Form | ||
{ | ||
public VerificationFormView() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
public void ShowPunch(Team team) | ||
{ | ||
teamNumberLabel.Text = team.Number.ToString(); | ||
} | ||
|
||
protected override bool ProcessCmdKey(ref Message msg, Keys keyData) | ||
{ | ||
if (keyData == (Keys.Control | Keys.Add) || keyData == (Keys.Control | Keys.Oemplus)) | ||
{ | ||
Bigger(); | ||
return true; | ||
} | ||
|
||
if (keyData == (Keys.Control | Keys.Subtract) || keyData == (Keys.Control | Keys.OemMinus)) | ||
{ | ||
Smaller(); | ||
return true; | ||
} | ||
|
||
return base.ProcessCmdKey(ref msg, keyData); | ||
} | ||
|
||
private void Smaller() | ||
{ | ||
var font = new Font(teamNumberLabel.Font.FontFamily, teamNumberLabel.Font.Size - 10); | ||
teamNumberLabel.Font = font; | ||
} | ||
|
||
private void Bigger() | ||
{ | ||
var font = new Font(teamNumberLabel.Font.FontFamily, teamNumberLabel.Font.Size + 10); | ||
teamNumberLabel.Font = font; | ||
} | ||
} | ||
} |
Oops, something went wrong.