public StrengthWorkoutItem(excercise Excercise)
 {
     InitializeComponent();
     DataContext = Excercise;
     Loaded += new RoutedEventHandler(StrengthWorkoutItem_Loaded);
   
 }
 public CardioWorkoutItem(excercise Excercise)
 {
     InitializeComponent();
     this.DataContext = Excercise;
 }
Example #3
0
        internal void AddExcerciseSet(ExcerciseSet set)
        {
            int exId = set.exercise_set.exercise_id;
            if (Excercises == null)
                Excercises = new Dictionary<int, excercise>();

            if (!Excercises.ContainsKey(exId))
            {
                excercise ex = new excercise(exId, set);
                Excercises.Add(exId, ex);
            }
            else
                Excercises[exId].AddSet(set);
        }