Exemplo n.º 1
0
        /// <summary>
        /// ロギングサービス取得
        /// </summary>
        private IFlotr2ChartService GetChartService(Flotr2Const.ChartType Type)
        {
            switch (Type)
            {
                case Flotr2Const.ChartType.Pie:
                    return new PieChartService();
                case Flotr2Const.ChartType.Bar:
                    return new BarChartService();
                case Flotr2Const.ChartType.Bubble:
                    return new BubbleChartService();
                case Flotr2Const.ChartType.Formation:
                    return new FormationChartService();

                default:
                    return null;
            }
        }
Exemplo n.º 2
0
 public ChartResult GetChartResult(IChartDto chartDto, Flotr2Const.ChartType Type)
 {
     return GetChartService(Type).GetChartResult(chartDto);
 }