private void Redraw(object sender, RoutedEventArgs e) { LineChart.ClearAndPlot(); BarChart.ClearAndPlot(); PieChart.ClearAndPlot(); PieChart1.ClearAndPlot(); StackedBarChart.ClearAndPlot(); ScatterChart.ClearAndPlot(); RadarChart.ClearAndPlot(); }
private void IsAlive(object sender, RoutedEventArgs e) { if (_isAlive) { _timer.Stop(); _isAlive = false; LineChart.Hoverable = true; LineChart.ClearAndPlot(false); BarChart.Hoverable = true; BarChart.ClearAndPlot(false); StackedBarChart.Hoverable = true; StackedBarChart.ClearAndPlot(false); PieChart.Hoverable = true; PieChart.ClearAndPlot(); PieChart1.Hoverable = true; PieChart1.ClearAndPlot(); ScatterChart.Hoverable = true; ScatterChart.ClearAndPlot(); RadarChart.Hoverable = true; RadarChart.ClearAndPlot(); } else { _timer.Start(); _isAlive = true; LineChart.Hoverable = false; BarChart.Hoverable = false; StackedBarChart.Hoverable = false; PieChart.Hoverable = false; PieChart1.Hoverable = false; ScatterChart.Hoverable = false; ScatterChart.PrimaryAxis.MinValue = null; RadarChart.Hoverable = false; } }