示例#1
0
 private void butFunnel_Click(object sender, RoutedEventArgs e)
 {
     Reset(ChartType.Funnel);
     modelChart            = Funnel.Create();
     controller.ChartModel = modelChart;
     RenderChart();
 }
示例#2
0
 private void butWaterfall_Click(object sender, RoutedEventArgs e)
 {
     Reset(ChartType.Waterfall);
     modelChart            = Waterfall.Create();
     controller.ChartModel = modelChart;
     RenderChart();
 }
示例#3
0
 private void butBoxWhisker_Click(object sender, RoutedEventArgs e)
 {
     Reset(ChartType.BoxWhisker);
     modelChart            = BoxWhisker.Create();
     controller.ChartModel = modelChart;
     RenderChart();
 }
示例#4
0
 private void butColoredLine_Click(object sender, RoutedEventArgs e)
 {
     Reset(ChartType.Line);
     modelChart            = Line.Create();
     controller.ChartModel = modelChart;
     RenderChart();
 }
示例#5
0
 private void butTreemap_Click(object sender, RoutedEventArgs e)
 {
     Reset(ChartType.TreeMap);
     modelChart            = Treemap.Create();
     controller.ChartModel = modelChart;
     RenderChart();
 }
示例#6
0
 private void butSunburst_Click(object sender, RoutedEventArgs e)
 {
     Reset(ChartType.Sunburst);
     modelChart            = Sunburst.Create();
     controller.ChartModel = modelChart;
     RenderChart();
 }
示例#7
0
 private void butHistogram_Click(object sender, RoutedEventArgs e)
 {
     Reset(ChartType.Histogram);
     modelChart            = Histogram.Create();
     controller.ChartModel = modelChart;
     RenderChart();
 }
示例#8
0
 private void butPareto_Click(object sender, RoutedEventArgs e)
 {
     Reset(ChartType.Pareto);
     modelChart            = Pareto.Create();
     controller.ChartModel = modelChart;
     RenderChart();
 }
示例#9
0
 private void butBoxWhisker_Click(object sender, EventArgs e)
 {
     Reset(ChartType.BoxWhisker);
     modelChart            = BoxWhisker.Create();
     controller.ChartModel = modelChart;
     viewPanel.Invalidate();
 }
示例#10
0
 private void butFunnel_Click(object sender, EventArgs e)
 {
     Reset(ChartType.Funnel);
     modelChart            = Funnel.Create();
     controller.ChartModel = modelChart;
     viewPanel.Invalidate();
 }
示例#11
0
 private void butColoredLine_Click(object sender, EventArgs e)
 {
     Reset(ChartType.Line);
     modelChart            = Line.Create();
     controller.ChartModel = modelChart;
     viewPanel.Invalidate();
 }
示例#12
0
 private void butSunburst_Click(object sender, EventArgs e)
 {
     Reset(ChartType.Sunburst);
     modelChart            = Sunburst.Create();
     controller.ChartModel = modelChart;
     viewPanel.Invalidate();
 }
示例#13
0
 private void butTreemap_Click(object sender, EventArgs e)
 {
     Reset(ChartType.TreeMap);
     modelChart            = Treemap.Create();
     controller.ChartModel = modelChart;
     viewPanel.Invalidate();
 }
示例#14
0
 private void butPareto_Click(object sender, EventArgs e)
 {
     Reset(ChartType.Pareto);
     modelChart            = Pareto.Create();
     controller.ChartModel = modelChart;
     viewPanel.Invalidate();
 }
示例#15
0
 private void butHistogram_Click(object sender, EventArgs e)
 {
     Reset(ChartType.Histogram);
     modelChart            = Histogram.Create();
     controller.ChartModel = modelChart;
     viewPanel.Invalidate();
 }
示例#16
0
 private void Reset(ChartType chartType)
 {
     if (modelChart != null)
     {
         modelChart = null;
     }
     factory    = CreateFactory(chartType);
     controller = factory.CreateController();
 }