Esempio n. 1
0
 public override object ConvertFrom(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value)
 {
     if (value is string)
     {
         IndicatorMetrix d = (IndicatorMetrix)context.Instance;
         return(d.StyleID);
     }
     return(base.ConvertFrom(context, culture, value));
 }
Esempio n. 2
0
 public IndicatorMetrix(IndicatorMetrix im) : base(im)
 {
     _groups      = im.Groups;
     _indicators  = im.Indicators;
     _cross       = im.Cross;
     _gapheight   = im.GapHeight;
     _showsummary = im.ShowSummary;
     _styleid     = im.StyleID;
     _pagesize    = im.PageSize;
     _borderstyle = im.BorderStyle;
 }
Esempio n. 3
0
        public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
        {
            // get the editor service.
            IWindowsFormsEditorService edSvc = (IWindowsFormsEditorService)provider.GetService(typeof(IWindowsFormsEditorService));

            if (edSvc == null)
            {
                // uh oh.
                return(value);
            }
            IndicatorMetrix metrix = context.Instance as IndicatorMetrix;

            metrix.DesignColorStyle();
            return(metrix.StyleID);
        }
Esempio n. 4
0
 protected virtual IndicatorBuilder CreateIndicatorBuilder(string viewid, IndicatorMetrix matrix, SemiRowsContainerPerhaps4Matrix semirowscontainer)
 {
     return(new IndicatorBuilder(viewid, matrix, semirowscontainer));
 }
Esempio n. 5
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);
        }
 public IndicatorBuilder(string viewid, IndicatorMetrix matrix, SemiRowsContainerPerhaps4Matrix semirowscontainer)
 {
     _viewid            = viewid;
     _semirowscontainer = semirowscontainer;
 }