Ejemplo n.º 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();
        }
Ejemplo n.º 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);
 }