private void _fuelSelectControl_PositionChanged(object sender, ToggleSwitchPositionChangedEventArgs e) { if (e == null) { return; } switch (e.NewPosition.PositionName) { case "TEST": if (_mfdManager.SimSupportModule != null) { _mfdManager.SimSupportModule.HandleInputControlEvent(CpdInputControls.FuelSelectTest, e.NewPosition); } break; case "NORM": if (_mfdManager.SimSupportModule != null) { _mfdManager.SimSupportModule.HandleInputControlEvent(CpdInputControls.FuelSelectNorm, e.NewPosition); } break; case "RSVR": if (_mfdManager.SimSupportModule != null) { _mfdManager.SimSupportModule.HandleInputControlEvent(CpdInputControls.FuelSelectRsvr, e.NewPosition); } break; case "INT WING": if (_mfdManager.SimSupportModule != null) { _mfdManager.SimSupportModule.HandleInputControlEvent(CpdInputControls.FuelSelectIntWing, e.NewPosition); } break; case "EXT WING": if (_mfdManager.SimSupportModule != null) { _mfdManager.SimSupportModule.HandleInputControlEvent(CpdInputControls.FuelSelectExtWing, e.NewPosition); } break; case "EXT CTR": if (_mfdManager.SimSupportModule != null) { _mfdManager.SimSupportModule.HandleInputControlEvent(CpdInputControls.FuelSelectExtCtr, e.NewPosition); } break; } }
private void _hsiModeSelectorSwitch_PositionChanged(object sender, ToggleSwitchPositionChangedEventArgs e) { if (e == null) { return; } switch (e.NewPosition.PositionName) { case "ILS/TCN": if (_mfdManager.SimSupportModule != null) { _mfdManager.SimSupportModule.HandleInputControlEvent(CpdInputControls.HsiModeIlsTcn, e.NewPosition); } break; case "TCN": if (_mfdManager.SimSupportModule != null) { _mfdManager.SimSupportModule.HandleInputControlEvent(CpdInputControls.HsiModeTcn, e.NewPosition); } break; case "NAV": if (_mfdManager.SimSupportModule != null) { _mfdManager.SimSupportModule.HandleInputControlEvent(CpdInputControls.HsiModeNav, e.NewPosition); } break; case "ILS/NAV": if (_mfdManager.SimSupportModule != null) { _mfdManager.SimSupportModule.HandleInputControlEvent(CpdInputControls.HsiModeIlsNav, e.NewPosition); } break; } }
private void _extFuelTransSwitch_PositionChanged(object sender, ToggleSwitchPositionChangedEventArgs e) { if (e == null) { return; } switch (e.NewPosition.PositionName) { case "NORM": if (_mfdManager.SimSupportModule != null) { _mfdManager.SimSupportModule.HandleInputControlEvent(CpdInputControls.ExtFuelSwitchTransNorm, e.NewPosition); } break; case "WING FIRST": if (_mfdManager.SimSupportModule != null) { _mfdManager.SimSupportModule.HandleInputControlEvent(CpdInputControls.ExtFuelSwitchTransWingFirst, e.NewPosition); } break; } }