// check if the stopwatch timer has passed the next line in the current stroke
 private bool lineDataTimeHasPassed(LineData lineData)
 {
     TimeSpan span = lineData.getDateTime().Subtract(testReplay.getStartTime());
     double seconds = span.TotalSeconds;
     bool b = seconds < stopwatch.Elapsed.TotalSeconds;
     return b;
 }
Beispiel #2
0
 // Converts LineData to string for saving TestReplay objects
 public string formatLineDataAsString(LineData lineData)
 {
     string lineString = "";
     Line line = lineData.getLine();
     lineString += line.X1.ToString();
     lineString += ("," + line.Y1.ToString());
     lineString += ("," + line.X2.ToString());
     lineString += ("," + line.Y2.ToString());
     lineString += (" " + lineData.getDateTime().ToString());
     return lineString;
 }