public override void EnableGauges(GaugeSet set) { GaugeSet.ID id = set.GetId(); switch (id) { case GaugeSet.ID.STANDARD: standard.EnableGauges(set); return; case GaugeSet.ID.LAUNCH: launch.EnableGauges(set); return; case GaugeSet.ID.FLIGHT: flight.EnableGauges(set); return; case GaugeSet.ID.LAND: landing.EnableGauges(set); return; case GaugeSet.ID.DOCK: docking.EnableGauges(set); return; case GaugeSet.ID.ORBIT: orbiting.EnableGauges(set); return; case GaugeSet.ID.SET1: set1.EnableGauges(set); return; case GaugeSet.ID.SET2: set2.EnableGauges(set); return; case GaugeSet.ID.SET3: set3.EnableGauges(set); return; default: Log.Warning("unknown gauge sewt ID for layout: " + id); break; } }
public bool IsCurrentGaugeSet(GaugeSet.ID id) { return(currentGaugeSet.GetId() == id); }
public bool IsCurrentGaugeSet(GaugeSet set) { return(IsCurrentGaugeSet(set.GetId())); }