public CabViewCircularSpeedGaugeRenderer(Viewer viewer, MSTSLocomotive locomotive, CVCDigital control, CabShader shader)
     : base(viewer, locomotive, control, shader)
 {
     CircularSpeedGauge = new CircularSpeedGauge(
         (int)Control.Width,
         (int)Control.Height,
         (int)Control.MaxValue,
         Control.Units == CABViewControlUnits.KM_PER_HOUR,
         true,
         Control.MaxValue == 240 || Control.MaxValue == 260,
         (int)Control.MinValue,
         Locomotive,
         Viewer
         );
 }
 public CircularSpeedGaugeControl(int width, int height, float maxSpeedMpS, WindowManager owner)
     : base(0, 0, width, height)
 {
     CircularSpeedGauge = new CircularSpeedGauge(
         width,
         height,
         owner.Viewer.MilepostUnitsMetric ? (int)MpS.ToKpH(maxSpeedMpS) : (int)MpS.ToMpH(maxSpeedMpS),
         owner.Viewer.MilepostUnitsMetric,
         true,
         (int)MpS.ToKpH(maxSpeedMpS) == 240 || (int)MpS.ToKpH(maxSpeedMpS) == 260,
         0,
         (MSTSLocomotive)owner.Viewer.PlayerLocomotive,
         owner.Viewer
         );
 }