Esempio n. 1
0
 public Gauge(Gauge gauge)
     : base(gauge)
 {
     _indicatorname = gauge.IndicatorName;
     _templateindex = gauge.TemplateIndex;
     _indicator     = gauge.Indicator;
     _gaugetype     = gauge.GaugeType;
     _needlecolor   = gauge.NeedleColor;
     _needlelength  = gauge.NeedleLength;
     _fontcolor     = gauge.FontColor;
     _linecolor     = gauge.LineColor;
     _tickcolor     = gauge.TickColor;
     _sectionstart  = gauge.SectionStart;
     _sectionend    = gauge.SectionEnd;
     _tickstart     = gauge.TickStart;
     _tickend       = gauge.TickEnd;
     _textloc       = gauge.TextLoc;
     _gapheight     = gauge.GapHeight;
     _maxtick       = gauge.MaxTick;
     _mintick       = gauge.MinTick;
     _bsemicircle   = gauge.bSemiCircle;
     _gaugecolor    = gauge.GaugeColor;
 }
 public CalculatorIndicator(CalculatorIndicator indicator)
     : base(indicator)
 {
     _summarycompare = indicator.SummaryCompare == null?null:indicator.SummaryCompare.Clone();
 }
Esempio n. 3
0
        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);
        }