//Methods //Check to see if this Exercise equals an exercise passed in public override bool Equals(object obj) { bool equals = true; Exercise ex = (Exercise)obj; if (!Name.Equals(ex.Name)) { equals = false; } else if (!ExerciseNumber.Equals(ex.ExerciseNumber)) { equals = false; } else if (!Weight.Equals(ex.Weight)) { equals = false; } else if (!Sets.Equals(ex.Sets)) { equals = false; } else if (!Reps.Equals(ex.Reps)) { equals = false; } else if (!LastSetReps.Equals(ex.LastSetReps)) { equals = false; } return(equals); }
public AdServiceContainer() { this.bjk_fromDate = new DateTime(2011, 1, 1, 0, 0, 0); this.bjk_toDate = new DateTime(2011, 4, 1, 23, 59, 59); this.bjk_exercise_number = ExerciseNumber.EXERCISE_1; bjk_client = new AdDataServiceClient(); bjk_ads = bjk_client.GetAdDataByDateRange(this.bjk_fromDate, this.bjk_toDate).ToList(); bjk_client.Close(); }