protected void SetGaugeEnabled(GaugeSet set, int windowId, bool enabled) { if (gauges.ContainsId(windowId)) { set.SetGaugeEnabled(windowId, enabled); if (set.IsCurrentGaugeSet()) { gauges.SetGaugeEnabled(windowId, enabled); } } }