/// <summary> /// When COM interaction is disabled, this forces all subsequent wrappers to block /// until interaction is re-enabled. /// </summary> /// <param name="reason">The reason why COM interaction was disabled.</param> private static void DoDisabledEvent(ITCOMDisabledReason reason) { reset.Reset(); Logger.WriteLine(LogCategory, String.Format("OnCOMCallsDisabledEvent(reason:{0})", reason)); }
private void DoCOMCallsDisabled(ITCOMDisabledReason ireason) { if (disabledHandler != null) { InteractionDisabledReason reason; switch (ireason) { case ITCOMDisabledReason.ITCOMDisabledReasonDialog: reason = InteractionDisabledReason.Dialog; break; case ITCOMDisabledReason.ITCOMDisabledReasonQuitting: reason = InteractionDisabledReason.Quitting; break; default: reason = InteractionDisabledReason.Other; break; } disabledHandler(reason); } }
private void ITunes_OnCOMCallsDisabledEvent([ComAliasName("iTunesLib.ITCOMDisabledReason")] ITCOMDisabledReason reason) => this.OnCOMCallsDisabledEvent?.Invoke(reason);
/// <summary> /// When COM interaction is disabled, this forces all subsequent wrappers to block /// until interaction is re-enabled. /// </summary> /// <param name="reason">The reason why COM interaction was disabled.</param> private static void DoDisabledEvent(ITCOMDisabledReason reason) { reset.Reset(); Console.WriteLine(String.Format("OnCOMCallsDisabledEvent(reason:{0})", reason)); }
private void itunes_OnCOMCallsDisabledEvent(ITCOMDisabledReason reason) { Debug.WriteLine(String.Format("OnCOMCallsDisabledEvent(reason:{0})", reason)); }