Example #1
0
        /// <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));
        }
Example #2
0
        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);
            }
        }
Example #3
0
 private void ITunes_OnCOMCallsDisabledEvent([ComAliasName("iTunesLib.ITCOMDisabledReason")] ITCOMDisabledReason reason)
 => this.OnCOMCallsDisabledEvent?.Invoke(reason);
Example #4
0
        /// <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));
        }
Example #5
0
 private void itunes_OnCOMCallsDisabledEvent(ITCOMDisabledReason reason)
 {
     Debug.WriteLine(String.Format("OnCOMCallsDisabledEvent(reason:{0})", reason));
 }
Example #6
0
 private void itunes_OnCOMCallsDisabledEvent(ITCOMDisabledReason reason)
 {
     Debug.WriteLine(String.Format("OnCOMCallsDisabledEvent(reason:{0})", reason));
 }