mirror of
https://github.com/MarkAHamann/MorseTrainer.git
synced 2025-12-06 03:42:02 +01:00
Fixed percent in analysis. Made analyzer window fixed font.
This commit is contained in:
parent
f675fc3ff7
commit
4d3af3d2c9
|
|
@ -95,7 +95,7 @@ namespace MorseTrainer
|
|||
}
|
||||
}
|
||||
|
||||
Write(String.Format("Sent {0} and {1} recorded valid: {2}%" + Environment.NewLine, results.Sent.Length, totalValid, (float)totalValid / (float)results.Sent.Length));
|
||||
Write(String.Format("Sent {0} and {1} recorded valid: {2:#}%" + Environment.NewLine, results.Sent.Length, totalValid, 100 * (float)totalValid / (float)results.Sent.Length));
|
||||
foreach (char c in MorseInfo.PossibleCharacters)
|
||||
{
|
||||
if (sent[c] != 0 || extra[c] != 0)
|
||||
|
|
|
|||
1
MorseTrainer/Form1.Designer.cs
generated
1
MorseTrainer/Form1.Designer.cs
generated
|
|
@ -171,6 +171,7 @@
|
|||
//
|
||||
// txtAnalysis
|
||||
//
|
||||
this.txtAnalysis.Font = new System.Drawing.Font("Consolas", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.txtAnalysis.Location = new System.Drawing.Point(20, 288);
|
||||
this.txtAnalysis.Name = "txtAnalysis";
|
||||
this.txtAnalysis.ReadOnly = true;
|
||||
|
|
|
|||
|
|
@ -734,7 +734,7 @@ namespace MorseTrainer
|
|||
if (val > WPM)
|
||||
{
|
||||
val = WPM;
|
||||
FarnsworthWPMValueToSlider(val);
|
||||
slider.Value = FarnsworthWPMValueToSlider(val);
|
||||
}
|
||||
FarnsworthWPM = val;
|
||||
FarnsworthWPMText = val;
|
||||
|
|
|
|||
Loading…
Reference in a new issue