applicationevents_sinkhelper.cs

来自「破解的飞信源代码」· CS 代码 · 共 71 行

CS
71
字号
namespace Microsoft.Office.Interop.Outlook
{
    using System;
    using System.Runtime.InteropServices;

    [ClassInterface(ClassInterfaceType.None)]
    public sealed class ApplicationEvents_SinkHelper : ApplicationEvents
    {
        public int m_dwCookie = 0;
        public ApplicationEvents_ItemSendEventHandler m_ItemSendDelegate = null;
        public ApplicationEvents_NewMailEventHandler m_NewMailDelegate = null;
        public ApplicationEvents_OptionsPagesAddEventHandler m_OptionsPagesAddDelegate = null;
        public ApplicationEvents_QuitEventHandler m_QuitDelegate = null;
        public ApplicationEvents_ReminderEventHandler m_ReminderDelegate = null;
        public ApplicationEvents_StartupEventHandler m_StartupDelegate = null;

        internal ApplicationEvents_SinkHelper()
        {
        }

        public override void ItemSend(object obj1, ref bool flagRef1)
        {
            if (this.m_ItemSendDelegate != null)
            {
                this.m_ItemSendDelegate(obj1, ref flagRef1);
            }
        }

        public override void NewMail()
        {
            if (this.m_NewMailDelegate != null)
            {
                this.m_NewMailDelegate();
            }
        }

        public override void OptionsPagesAdd(PropertyPages pages1)
        {
            if (this.m_OptionsPagesAddDelegate != null)
            {
                this.m_OptionsPagesAddDelegate(pages1);
            }
        }

        public override void Quit()
        {
            if (this.m_QuitDelegate != null)
            {
                this.m_QuitDelegate();
            }
        }

        public override void Reminder(object obj1)
        {
            if (this.m_ReminderDelegate != null)
            {
                this.m_ReminderDelegate(obj1);
            }
        }

        public override void Startup()
        {
            if (this.m_StartupDelegate != null)
            {
                this.m_StartupDelegate();
            }
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?