syncobjectevents_sinkhelper.cs

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

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

    [ClassInterface(ClassInterfaceType.None)]
    public sealed class SyncObjectEvents_SinkHelper : SyncObjectEvents
    {
        public int m_dwCookie = 0;
        public SyncObjectEvents_OnErrorEventHandler m_OnErrorDelegate = null;
        public SyncObjectEvents_ProgressEventHandler m_ProgressDelegate = null;
        public SyncObjectEvents_SyncEndEventHandler m_SyncEndDelegate = null;
        public SyncObjectEvents_SyncStartEventHandler m_SyncStartDelegate = null;

        internal SyncObjectEvents_SinkHelper()
        {
        }

        public override void OnError(int num1, string text1)
        {
            if (this.m_OnErrorDelegate != null)
            {
                this.m_OnErrorDelegate(num1, text1);
            }
        }

        public override void Progress(OlSyncState state1, string text1, int num1, int num2)
        {
            if (this.m_ProgressDelegate != null)
            {
                this.m_ProgressDelegate(state1, text1, num1, num2);
            }
        }

        public override void SyncEnd()
        {
            if (this.m_SyncEndDelegate != null)
            {
                this.m_SyncEndDelegate();
            }
        }

        public override void SyncStart()
        {
            if (this.m_SyncStartDelegate != null)
            {
                this.m_SyncStartDelegate();
            }
        }
    }
}

⌨️ 快捷键说明

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