public void EnableActiveFlyByWire(IBindingManager manager) { foreach (KeyValuePair <string, bool> kvp in flyByWire) { manager.ToggleFlyByWire(kvp.Key, kvp.Value); } }
public void DisableActiveFlyByWire(IBindingManager manager) { foreach (KeyValuePair <string, bool> kvp in flyByWire) { if (kvp.Value) { try { manager.ToggleFlyByWire(kvp.Key, false); } catch (Exception ex) // intentionally catch any exception thrown so we don't crash in the middle of breaking execution { // log the exception only when "super verbose" is enabled Utilities.SafeHouse.Logger.SuperVerbose(string.Format("Excepton in ProgramContext.DisableActiveFlyByWire\r\n{0}", ex)); } } } }
public void EnableActiveFlyByWire(IBindingManager manager) { foreach (KeyValuePair<string, bool> kvp in flyByWire) { manager.ToggleFlyByWire(kvp.Key, kvp.Value); } }