Example #1
0
        public WorkoutDataSource()
        {
            WorkoutLog data  = new WorkoutLog();
            Lift       lift1 = new Lift();

            lift1.Name = "Overhead Press";
            lift1.Sets.Add(new LiftingSet {
                Weight = 50, Reps = 5
            });
            lift1.Sets.Add(new LiftingSet {
                Weight = 60, Reps = 5
            });
            lift1.Sets.Add(new LiftingSet {
                Weight = 70, Reps = 5
            });
            data.Lifts.Add(lift1);

            Lift lift2 = new Lift();

            lift2.Name = "Deadlift";
            lift2.Sets.Add(new LiftingSet {
                Weight = 135, Reps = 5
            });
            lift2.Sets.Add(new LiftingSet {
                Weight = 225, Reps = 5
            });
            lift2.Sets.Add(new LiftingSet {
                Weight = 185, Reps = 3
            });
            data.Lifts.Add(lift2);

            data.Date = new DateTime(2013, 1, 3);
            this.WorkoutLog.Add(data);

            WorkoutLog data2 = new WorkoutLog();

            Lift lift3 = new Lift();

            lift3.Name = "Bench Press";
            lift3.Sets.Add(new LiftingSet {
                Weight = 45, Reps = 5
            });
            lift3.Sets.Add(new LiftingSet {
                Weight = 65, Reps = 5
            });
            lift3.Sets.Add(new LiftingSet {
                Weight = 115, Reps = 2
            });
            data2.Lifts.Add(lift3);

            data2.Date = new DateTime(2013, 1, 5);
            this.WorkoutLog.Add(data2);

            WorkoutLog data3 = new WorkoutLog();
            Lift       lift4 = new Lift();

            lift4.Name = "Overhead Press";
            lift4.Sets.Add(new LiftingSet {
                Weight = 45, Reps = 5
            });
            lift4.Sets.Add(new LiftingSet {
                Weight = 55, Reps = 5
            });
            lift4.Sets.Add(new LiftingSet {
                Weight = 65, Reps = 5
            });
            data3.Lifts.Add(lift4);

            Lift lift5 = new Lift();

            lift5.Name = "Deadlift";
            lift5.Sets.Add(new LiftingSet {
                Weight = 125, Reps = 5
            });
            lift5.Sets.Add(new LiftingSet {
                Weight = 215, Reps = 5
            });
            lift5.Sets.Add(new LiftingSet {
                Weight = 175, Reps = 3
            });
            data3.Lifts.Add(lift5);

            data3.Date = new DateTime(2013, 1, 1);
            this.WorkoutLog.Add(data3);
        }
    public DesignModeWorkoutLog()
    {
      WorkoutLog data = new WorkoutLog();
      Lift lift1 = new Lift();
      lift1.Name = "Overhead Press";
      lift1.Sets.Add(new LiftingSet { Weight = 50, Reps = 5 });
      lift1.Sets.Add(new LiftingSet { Weight = 60, Reps = 5 });
      lift1.Sets.Add(new LiftingSet { Weight = 70, Reps = 5 });
      data.Lifts.Add(lift1);

      Lift lift2 = new Lift();
      lift2.Name = "Deadlift";
      lift2.Sets.Add(new LiftingSet { Weight = 135, Reps = 5 });
      lift2.Sets.Add(new LiftingSet { Weight = 225, Reps = 5 });
      lift2.Sets.Add(new LiftingSet { Weight = 185, Reps = 3 });
      data.Lifts.Add(lift2);

      data.Date = new DateTime(2013, 1, 3);
      this.WorkoutLog.Add(data);

      WorkoutLog data2 = new WorkoutLog();

      Lift lift3 = new Lift();
      lift3.Name = "Bench Press";
      lift3.Sets.Add(new LiftingSet { Weight = 45, Reps = 5 });
      lift3.Sets.Add(new LiftingSet { Weight = 65, Reps = 5 });
      lift3.Sets.Add(new LiftingSet { Weight = 115, Reps = 2 });
      data2.Lifts.Add(lift3);

      data2.Date = new DateTime(2013, 1, 5);
      this.WorkoutLog.Add(data2);

      WorkoutLog data3 = new WorkoutLog();
      Lift lift4 = new Lift();
      lift4.Name = "Overhead Press";
      lift4.Sets.Add(new LiftingSet { Weight = 45, Reps = 5 });
      lift4.Sets.Add(new LiftingSet { Weight = 55, Reps = 5 });
      lift4.Sets.Add(new LiftingSet { Weight = 65, Reps = 5 });
      data3.Lifts.Add(lift4);

      Lift lift5 = new Lift();
      lift5.Name = "Deadlift";
      lift5.Sets.Add(new LiftingSet { Weight = 125, Reps = 5 });
      lift5.Sets.Add(new LiftingSet { Weight = 215, Reps = 5 });
      lift5.Sets.Add(new LiftingSet { Weight = 175, Reps = 3 });
      data3.Lifts.Add(lift5);

      data3.Date = new DateTime(2013, 1, 1);
      this.WorkoutLog.Add(data3);

      WorkoutLog data4 = new WorkoutLog();
      Lift Lift6 = new Lift();
      Lift6.Name = "Bench Press";
      Lift6.Sets.Add(new LiftingSet { Weight = 45, Reps = 5 });
      Lift6.Sets.Add(new LiftingSet { Weight = 65, Reps = 5 });
      Lift6.Sets.Add(new LiftingSet { Weight = 115, Reps = 2 });
      data4.Lifts.Add(Lift6);

      data4.Date = new DateTime(2012, 12, 28);
      this.WorkoutLog.Add(data4);
    }