private void SetChartType(StatisticChartType statisticChartType)
        {
            StatisticsChartUserControl statUserControl = ChartTransitionBox.Content as StatisticsChartUserControl;

            StatisticChartType = statisticChartType;
            statUserControl.StatisticChartType = statisticChartType;
            statUserControl.UpdateChart();

            switch (StatisticChartType)
            {
            case StatisticChartType.Pie:
                splitButtonSelectChartType.Image = ImageLoader.FromResource("StatisticsPie.png");
                break;

            case StatisticChartType.Bar:
                splitButtonSelectChartType.Image = ImageLoader.FromResource("StatisticsBar.png");
                break;

            case StatisticChartType.Column:
                splitButtonSelectChartType.Image = ImageLoader.FromResource("Statistics.png");
                break;

            case StatisticChartType.Line:
                splitButtonSelectChartType.Image = ImageLoader.FromResource("StatisticsLine.png");
                break;

            default:
                break;
            }
        }
        private void AddStatistic(StatisticType statisticType, StatisticChartType chartType)
        {
            StatisticsItemUserControl chartControl = new StatisticsItemUserControl();

            chartControl.DataBase           = _dataBase;
            chartControl.StatisticType      = statisticType;
            chartControl.StatisticChartType = chartType;

            ChartGridOverview.Children.Add(chartControl);
        }