public StepsDayType SubtractStepsDay(StepsDayType subtract_stepsDay_from_this) { steps -= subtract_stepsDay_from_this.steps; exercise_time -= subtract_stepsDay_from_this.exercise_time; distance -= subtract_stepsDay_from_this.distance; calories_burned -= subtract_stepsDay_from_this.calories_burned; return(this); }
public static int GetIndexFromStepDay(StepsDayType stepsdaytype, StepsDayType[] stepsHistoryList) { for (int i = 0; i < stepsHistoryList.Length; i++) { if (stepsdaytype.day == stepsHistoryList[i].day) { return(i); } } return(-1); }