public static void MesgEvent(object sender, MesgEventArgs e)
 {
     if (e.mesg.GetField(RecordMesg.FieldDefNum.HeartRate) != null)
     {
         HeartRateLogger logger         = HeartRateLogger.Instance;
         Field           HeartRateField = e.mesg.GetField(RecordMesg.FieldDefNum.HeartRate);
         int             HeartRate      = Convert.ToInt32(HeartRateField.GetValue());
         logger.Log(HeartRate);
     }
 }
 public void Reset()
 {
     instance = new HeartRateLogger();
 }