예제 #1
0
        private void OnRunSplit(object sender, DataEventArgs <GPBikes.SPluginsBikeSplit_t> e)
        {
            var data  = e.Data;
            var dbObj = new BikeSplit
            {
                Split     = data.Split,
                SplitTime = data.SplitTime,
                BestDiff  = data.BestDiff
            };

            mLogger.BikeSplits.AddObject(dbObj);
            mLogger.SaveChanges();
        }
예제 #2
0
 public static void AssertAreEqual(BikeSplit recData, GPBikes.SPluginsBikeSplit_t data)
 {
     Assert.AreEqual(recData.Split, data.Split);
     Assert.AreEqual(recData.SplitTime, data.SplitTime);
     Assert.AreEqual(recData.BestDiff, data.BestDiff);
 }