outlookbarshortcutsevents_sinkhelper.cs

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

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

    [ClassInterface(ClassInterfaceType.None)]
    public sealed class OutlookBarShortcutsEvents_SinkHelper : OutlookBarShortcutsEvents
    {
        public OutlookBarShortcutsEvents_BeforeShortcutAddEventHandler m_BeforeShortcutAddDelegate = null;
        public OutlookBarShortcutsEvents_BeforeShortcutRemoveEventHandler m_BeforeShortcutRemoveDelegate = null;
        public int m_dwCookie = 0;
        public OutlookBarShortcutsEvents_ShortcutAddEventHandler m_ShortcutAddDelegate = null;

        internal OutlookBarShortcutsEvents_SinkHelper()
        {
        }

        public override void BeforeShortcutAdd(ref bool flagRef1)
        {
            if (this.m_BeforeShortcutAddDelegate != null)
            {
                this.m_BeforeShortcutAddDelegate(ref flagRef1);
            }
        }

        public override void BeforeShortcutRemove(OutlookBarShortcut shortcut1, ref bool flagRef1)
        {
            if (this.m_BeforeShortcutRemoveDelegate != null)
            {
                this.m_BeforeShortcutRemoveDelegate(shortcut1, ref flagRef1);
            }
        }

        public override void ShortcutAdd(OutlookBarShortcut shortcut1)
        {
            if (this.m_ShortcutAddDelegate != null)
            {
                this.m_ShortcutAddDelegate(shortcut1);
            }
        }
    }
}

⌨️ 快捷键说明

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