using System;
using CB.Entity;
using CB.Interface;
namespace CB.TrendChart
{
///
/// 走势图常用
///
public class TrendChartUtils
{
public static string GetTrendChartClassName(ChartItemClassName ClassName)
{
string className = "";
switch (ClassName)
{
case ChartItemClassName.SingleValue:
className = "CB.TrendChart.SingleValueItem,CB.TrendChart";
break;
case ChartItemClassName.MultiValue:
className = "CB.TrendChart.MultiValueItem,CB.TrendChart";
break;
}
return className;
}
///
/// 返回走势图项处理类
///
///
///
///
public static IChartItem GetTrendChartInterface(ChartItemClassName className) where T : LotteryOpenCode
{
switch (className)
{
case ChartItemClassName.SingleValue:
return new SingleValueItem();
case ChartItemClassName.MultiValue:
return new MultiValueItem();
case ChartItemClassName.SpecialValue:
return new SpecialValueItem();
}
return null;
}
}
}