コード例 #1
0
        public void AddRun(GarminUnit garmin, Run run)
        {
            var runs = new Runs()
            {
                FirstLapIndex = run.FirstLapIndex,
                LastLapIndex  = run.LastLapIndex,
                SportType     = (int)run.SportType,
                ProgramType   = run.ProgramType,
                MultiSport    = (int)run.MultiSport,
//				QuickWorkout = (int) run.QuickWorkout,
//				Workout = (int) run.Workout,
//				VirtualPartner = (int) run.VirtualPartner
            };

            database.Runs.InsertOnSubmit(runs);
            database.SubmitChanges();
        }
コード例 #2
0
ファイル: DataStore.cs プロジェクト: GSharp-Project/GSharp
        public void AddRun(GarminUnit garmin, Run run)
        {
            var runs = new Runs()
            {
                FirstLapIndex = run.FirstLapIndex,
                LastLapIndex = run.LastLapIndex,
                SportType = (int) run.SportType,
                ProgramType = run.ProgramType,
                MultiSport = (int) run.MultiSport,
            //				QuickWorkout = (int) run.QuickWorkout,
            //				Workout = (int) run.Workout,
            //				VirtualPartner = (int) run.VirtualPartner
            };

            database.Runs.InsertOnSubmit(runs);
            database.SubmitChanges();
        }