private void TRTB_TextChanged(object sender, TextChangedEventArgs e) { HeightSeries.Clear(); SpeedSeries.Clear(); AccelerationSeries.Clear(); for (int i = 0; i < Ellipsies.Count(); ++i) { Canvas.Children.RemoveAt(Canvas.Children.Count - 1); } Ellipsies.Clear(); Animations.Clear(); AddEllipse = true; colorIndex = 0; TB_TextChanged(sender, e); }
private void OnData(StateMonitorLineChartData info) { if (temp_index <= info.Time) { PosSeries.Append(info.Time, info.Pos); SpeedSeries.Append(info.Time, info.Speed); TemSeries.Append(info.Time, info.Tem); PressSeries.Append(info.Time, info.Press); temp_index = info.Time; } else { PosSeries.Clear(); SpeedSeries.Clear(); TemSeries.Clear(); PressSeries.Clear(); temp_index = info.Time; } }