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)); }
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; }
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); }
protected virtual IndicatorBuilder CreateIndicatorBuilder(string viewid, IndicatorMetrix matrix, SemiRowsContainerPerhaps4Matrix semirowscontainer) { return(new IndicatorBuilder(viewid, matrix, semirowscontainer)); }
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; }