コード例 #1
0
        public StartWorkout()
        {
            InitializeComponent();
            vm = new RoutineDataViewModel();

            listRoutines.ItemsSource = vm.routines;
        }
コード例 #2
0
        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();
        }