protected void OnSetFastestLap(LapEventArgs e, TelemetryLap oldFastestLap) { logger.Info(string.Format("Set new Fastest Lap. (old={0}. new={1})", oldFastestLap != null ? oldFastestLap.LapTime.AsTimeString() : "Nothing", e.Lap.LapTime.AsTimeString())); if (SetFastestLap != null) { SetFastestLap(this, e); } }
protected void OnSetFastestLap(LapEventArgs e, TelemetryLap oldFastestLap) { logger.Info(string.Format("Set new Fastest Lap. (old={0}. new={1})", oldFastestLap != null ? oldFastestLap.LapTime.AsTimeString() : "Nothing", e.Lap.LapTime.AsTimeString())); if (SetFastestLap != null) SetFastestLap(this, e); }
void TelemetryLapManager_RemovedLap(object sender, LapEventArgs e) { GraphPane myPane = zedGraphControl1.GraphPane; var curve = myPane.CurveList.First( (a) => a.Label.Text == atual ); curve.Clear(); }
void telemetryLapManager_SetFastestLap(object sender, LapEventArgs e) { if (!cbest) return; GraphPane myPane = zedGraphControl1.GraphPane; var curve = myPane.CurveList.Find( (a) => a.Label.Text == "FastLap" ); if(curve !=null) myPane.CurveList.Remove(curve); LoadLap(e.Lap, "FastLap", Color.Blue); }
void telemetryLapManager_RemovedLap(object sender, LapEventArgs e) { GraphPane myPane = zedGraphControl1.GraphPane; var curve = myPane.CurveList.First( (a) => a.Label.Text == "RealTime" ); curve.Clear(); if (clast) { curve = myPane.CurveList.Find( (a) => a.Label.Text == "LastLap" ); if (curve != null) { myPane.CurveList.Remove(curve); LoadLap(e.Lap, "LastLap", Color.Blue); } else { LoadLap(e.Lap, "LastLap", Color.Blue); } } zedGraphControl1.AxisChange(); zedGraphControl1.Invalidate(); }