/// <summary> /// Creates the gauge. /// </summary> /// <param name='graphicsDisplay'>Graphics display.</param> private void CreateGauge(IGraphicsDisplay graphicsDisplay) { this.gaugeBounds = new Rectangle( this.Bounds.X + this.speedGaugeDefinition.GaugeHorizontalMargin, this.Bounds.Y + this.speedGaugeDefinition.GaugeVerticalMargin, this.speedGaugeDefinition.GaugeWidth, this.speedGaugeDefinition.GaugeMarkerWidth * 3); this.gauge = new HorizontalGauge( this.speedGaugeDefinition.BackgroundColor, graphicsDisplay, this.gaugeBounds, this.speedGaugeDefinition.GaugeMarkerWidth, this.speedGaugeDefinition.BorderColor, 0.5f); this.gauge.MarkerChanged += (sender, e) => { this.OnSpeedChanged(EventArgs.Empty); }; }