Fixed percent in analysis. Made analyzer window fixed font.

This commit is contained in:
Mark Hamann 2016-03-06 18:33:38 -08:00
parent f675fc3ff7
commit 4d3af3d2c9
3 changed files with 3 additions and 2 deletions

View file

@ -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) foreach (char c in MorseInfo.PossibleCharacters)
{ {
if (sent[c] != 0 || extra[c] != 0) if (sent[c] != 0 || extra[c] != 0)

View file

@ -171,6 +171,7 @@
// //
// txtAnalysis // 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.Location = new System.Drawing.Point(20, 288);
this.txtAnalysis.Name = "txtAnalysis"; this.txtAnalysis.Name = "txtAnalysis";
this.txtAnalysis.ReadOnly = true; this.txtAnalysis.ReadOnly = true;

View file

@ -734,7 +734,7 @@ namespace MorseTrainer
if (val > WPM) if (val > WPM)
{ {
val = WPM; val = WPM;
FarnsworthWPMValueToSlider(val); slider.Value = FarnsworthWPMValueToSlider(val);
} }
FarnsworthWPM = val; FarnsworthWPM = val;
FarnsworthWPMText = val; FarnsworthWPMText = val;