public StartWorkout() { InitializeComponent(); vm = new RoutineDataViewModel(); listRoutines.ItemsSource = vm.routines; }
void onBackClick(object sender, System.EventArgs e) { //Dao.GetMyExercises.Clear(); RoutineShow rs = new RoutineShow(); List <RoutineShow> rsList = new List <RoutineShow>(); ObservableCollection <RoutineShow> allEx = Dao.GetMyExercises; for (int i = 0; i < allEx.Count; i++) { rs.RoutineName = entry_routine.Text; rs.ExcerciseName = allEx[i].ExcerciseName; rsList.Add(rs); } BLPlanned bLPlanned = new BLPlanned(); int rowInserted = bLPlanned.RoutineShowInsert(rsList); RoutineDataViewModel rdvm = new RoutineDataViewModel(); App.Current.MainPage.Navigation.PopModalAsync(); }