protected void OnCompletedFullLap(CompletedFullLapEventArgs e) { if (CompletedFullLap != null) { CompletedFullLap(this, e); } }
protected void OnCompletedFullLap(CompletedFullLapEventArgs e) { if (CompletedFullLap != null) CompletedFullLap(this, e); }
void TelemetryLapManager_CompletedFullLap(object sender, CompletedFullLapEventArgs e) { if (atual == RT1) atual = RT2; else atual = RT1; started = true; GraphPane myPane = zedGraphControl1.GraphPane; var curve = myPane.CurveList.First( (a) => a.Label.Text == atual ); curve.Clear(); }
void telemetryLapManager_CompletedFullLap(object sender, CompletedFullLapEventArgs 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.CompletedLap, "LastLap", Color.Blue); } zedGraphControl1.AxisChange(); zedGraphControl1.Invalidate(); }