public UpdateActualExercisePage(EditExercise ObjEditExercise)
 {
     InitializeComponent();
     _objworkoutTypesViewModel        = new WorkoutTypesViewModel();
     dropdownExerciseType.ItemsSource = _objworkoutTypesViewModel.WorkOutSource;
     _objEditExercise              = new EditExercise();
     _objEditExercise              = ObjEditExercise;
     WorkOutType                   = _objEditExercise.ExerciseTypeId;
     NumberofSets                  = _objEditExercise.SetsNumber;
     Workoutid                     = Convert.ToInt32(_objEditExercise.WorkOutId);
     _apiService                   = new RestApi();
     _objHeaderModel               = new HeaderModel();
     _baseUrl                      = Settings.Url + Domain.AddActualExerciseApiConstant;
     _objAddActualExerciseRequest  = new AddActualExerciseRequest();
     _objAddActualExerciseResponse = new AddActualExerciseResponse();
     LoadPageView();
 }
 public AddNewExcercisePage(Int64 WkoutId, int Exertype)
 {
     InitializeComponent();
     _objworkoutTypesViewModel        = new WorkoutTypesViewModel();
     dropdownExerciseType.ItemsSource = _objworkoutTypesViewModel.WorkOutSource;
     Workoutid = WkoutId;
     _objAddExerciseWorkoutRequest  = new AddExerciseWorkoutRequest();
     _objAddExerciseWorkoutResponse = new AddExerciseWorkoutResponse();
     _apiService     = new RestApi();
     _objHeaderModel = new HeaderModel();
     if (Exertype == 1)
     {
         _baseUrl = Settings.Url + Domain.AddExerciseWorkoutApiConstant;
         pageId   = 1;
     }
     if (Exertype == 2)
     {
         _baseUrl = Settings.Url + Domain.AddScheduleExerciseApiConstant;
         pageId   = 2;
     }
     NamesListView.ItemsSource = names;
 }
 public AddNewScheduleExercise()
 {
     InitializeComponent();
     _objworkoutTypesViewModel        = new WorkoutTypesViewModel();
     dropdownExerciseType.ItemsSource = _objworkoutTypesViewModel.WorkOutSource;
 }