public DoubleBar(Parameter parameterLeft, Parameter parameterRight, XGraphics gfx) { this.parameterLeft = parameterLeft; this.parameterRight = parameterRight; this.gfx = gfx; }
void DrawPentaInfoBox(XGraphics gfx, XPoint point, XImage image, Parameter parameter) { double val = parameter.Value; string str = parameter.Name; XBrush brush = ChooseBrushColor(parameter.Percentage, parameter.RedVal, parameter.AmberVal); XSize ellipseSize = new XSize(10, 10); gfx.DrawRoundedRectangle(brush, new XRect(point.X, point.Y, 50, 50), ellipseSize); gfx.DrawString(str, new XFont("Arial", 12), XBrushes.White, point + new XPoint(0,60)); gfx.DrawString(val.ToString() + "%", new XFont("Arial", 12), XBrushes.White, point + new XPoint(10,30)); gfx.DrawImage(image, new XRect(point + new XPoint(50,0),new XSize(50,50))); }