private void Add_Click(object sender, RoutedEventArgs e)
 {
     if (repsTxt.Text.Length > 0 || timeFrameTxt.Text.Length > 0)
     {
         Exercise exercise = new Exercise((Exercise)exercisePicker.SelectedItem);
         exercise.Date = (DateTime)datePicker.Value;
         try
         {
             exercise.Reps = (int)Double.Parse(repsTxt.Text);
         }
         catch (Exception)
         {
             exercise.Reps = 0;
         }
         try
         {
             exercise.TimeFrame = (int)Double.Parse(timeFrameTxt.Text);
         }
         catch (Exception)
         {
             exercise.TimeFrame = 0;
         }
         exercise.Intensity = (String)intensityPicker.SelectedItem;
         App.MealViewModel.ExercisesDone.Add(exercise);
         ObservableCollection<Exercise> ex = new ObservableCollection<Exercise>();
         ex.Add(exercise);
         App.MealViewModel.MainLogic.Sync.AddExercisesToSync(ex);
     }
     
     NavigationService.GoBack();
 }
 //Copy of a basic exercise to be used for a done exercise
 public Exercise(Exercise e)
 {
     Id = e.Id;
     Name = e.Name;
     Light_Cal = e.Light_Cal;
     Moderate_Cal = e.Moderate_Cal;
     Intense_Cal = e.Intense_Cal;
     E_Type = new List<String>(); //Sets ExerciseTypes implicit
     foreach (String s in e.E_Type)
     {
         E_Type.Add(s);
     }
 }