private Cell IndicatorControl(string type)
        {
            Cell cell = null;

            switch (type.ToLower())
            {
            case "commonlabel":
                cell = new CommonLabel();
                break;

            case "image":
                cell = new Image();
                break;

            case "expression":
                cell = new Expression();
                break;

            case "groupdimension":
                cell = new GroupDimension();
                break;

            case "calculategroupdimension":
                cell = new CalculateGroupDimension();
                break;

            case "crossdimension":
                cell = new CrossDimension();
                break;

            case "calculatecrossdimension":
                cell = new CalculateCrossDimension();
                break;

            case "indicator":
                cell = new Indicator();
                break;

            case "calculateindicator":
                cell = new CalculateIndicator();
                break;

            case "chart":
                cell = new Chart();
                break;

            case "gauge":
                cell = new Gauge();
                break;

            case "indicatormetrix":
                cell = new IndicatorMetrix();
                break;

            case "dbtext":
                cell = new DBText();
                break;

            case "calculatorindicator":
                cell = new CalculatorIndicator();
                break;

            case "gridproportiondecimalindicator":
                cell = new GridProportionDecimalIndicator();
                break;
            }
            return(cell);
        }
 public CalculatorIndicator(CalculateIndicator indicator)
     : base(indicator)
 {
     _summarycompare = indicator.SummaryCompare;
 }
Beispiel #3
0
 public CalculateIndicator(CalculateIndicator indicator) : base(indicator)
 {
     _totalcompare   = indicator.TotalCompare == null ? null : indicator.TotalCompare.Clone();
     _summarycompare = indicator.SummaryCompare == null ? null : indicator.SummaryCompare.Clone();
     _detailcompare  = indicator.DetailCompare == null ? null : indicator.DetailCompare.Clone();
 }