private void Data_Click(object sender, RoutedEventArgs e) { Window_ChartData chartData = new Window_ChartData(cont, Class.Enumerators.ChartType.Chart_Type.PieChart); chartData.Owner = Window.GetWindow(this); chartData.ShowDialog(); }
private void Data_Click(object sender, RoutedEventArgs e) { Window_ChartData chartData = new Window_ChartData(cont, Class.Enumerators.ChartType.Chart_Type.ColumnChart); if (cont.Series.Count > 0) { if (cont.Series[0] is ColumnSeries) { chartData = new Window_ChartData(cont, Class.Enumerators.ChartType.Chart_Type.ColumnChart); } else if (cont.Series[0] is StackedAreaSeries) { chartData = new Window_ChartData(cont, Class.Enumerators.ChartType.Chart_Type.StackedAreaChart); } else if (cont.Series[0] is LineSeries) { chartData = new Window_ChartData(cont, Class.Enumerators.ChartType.Chart_Type.LineChart); } else if (cont.Series[0] is RowSeries) { chartData = new Window_ChartData(cont, Class.Enumerators.ChartType.Chart_Type.RowChart); } else if (cont.Series[0] is StackedColumnSeries) { chartData = new Window_ChartData(cont, Class.Enumerators.ChartType.Chart_Type.StackedColumnChart); } else if (cont.Series[0] is StackedRowSeries) { chartData = new Window_ChartData(cont, Class.Enumerators.ChartType.Chart_Type.StackedRowChart); } else if (cont.Series[0] is StepLineSeries) { chartData = new Window_ChartData(cont, Class.Enumerators.ChartType.Chart_Type.StepLineChart); } } chartData.Owner = Window.GetWindow(this); chartData.ShowDialog(); }