private void ClearAdditionalValues() { WahooFF00Values.Clear(); WahooFF01Values.Clear(); ActivityValues.Clear(); FileIdValues.Clear(); DeviceInfoValues.Clear(); WorkoutValues.Clear(); FieldDescriptionValues.Clear(); DeveloperDataIdValues.Clear(); EventValues.Clear(); SportValues.Clear(); }
public static void OnSportMesg(object sender, MesgEventArgs e) { SportValues values = new SportValues(); SportMesg mesg = (SportMesg)e.mesg; try { int num = mesg.GetNumFields(); values._sport = mesg.GetSport(); values._subSport = mesg.GetSubSport(); } catch (FitException exception) { Console.WriteLine("\tOnMesg Error {0}", exception.Message); Console.WriteLine("\t{0}", exception.InnerException); } DataManager.Instance.SportValues.Add(values); }