Beispiel #1
0
 private void ClearAdditionalValues()
 {
     WahooFF00Values.Clear();
     WahooFF01Values.Clear();
     ActivityValues.Clear();
     FileIdValues.Clear();
     DeviceInfoValues.Clear();
     WorkoutValues.Clear();
     FieldDescriptionValues.Clear();
     DeveloperDataIdValues.Clear();
     EventValues.Clear();
     SportValues.Clear();
 }
Beispiel #2
0
        public static void OnWorkoutMesg(object sender, MesgEventArgs e)
        {
            WorkoutValues values = new WorkoutValues();
            WorkoutMesg   mesg   = (WorkoutMesg)e.mesg;

            try
            {
                values._wktName = mesg.GetWktNameAsString();
            }
            catch (FitException exception)
            {
                Console.WriteLine("\tOnFileIDMesg Error {0}", exception.Message);
                Console.WriteLine("\t{0}", exception.InnerException);
            }
            DataManager.Instance.WorkoutValues.Add(values);
        }