public override void Draw(bool refreshDisplay) { if (refreshDisplay == true || this.PreviousMarker != this.CurrentMarker) { // Blank out everything this.DrawRectangle(this.Bounds, this.BackgroundColor); // Draw the gauge bar this.DrawRectangle(this.CreateGaugeRectangle(), this.GaugeColor); // Draw the marker this.DrawRectangle(this.CreateMarkerRectangle(), this.GaugeColor); this.PreviousMarker = this.CurrentMarker; } return; }