⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 applicationevents_10_eventprovider.cs

📁 破解的飞信源代码
💻 CS
📖 第 1 页 / 共 2 页
字号:
        }

        public override void remove_AdvancedSearchStopped(ApplicationEvents_10_AdvancedSearchStoppedEventHandler handler1)
        {
            lock (this)
            {
                int count = this.m_aEventSinkHelpers.Count;
                int index = 0;
                if (0 < count)
                {
                    do
                    {
                        ApplicationEvents_10_SinkHelper helper = (ApplicationEvents_10_SinkHelper) this.m_aEventSinkHelpers[index];
                        if ((helper.m_AdvancedSearchStoppedDelegate != null) && (helper.m_AdvancedSearchStoppedDelegate.Equals((object) handler1) & 0xff))
                        {
                            this.m_aEventSinkHelpers.RemoveAt(index);
                            this.m_ConnectionPoint.Unadvise(helper.m_dwCookie);
                            if (count <= 1)
                            {
                                Marshal.ReleaseComObject(this.m_ConnectionPoint);
                                this.m_ConnectionPoint = null;
                                this.m_aEventSinkHelpers = null;
                            }
                            break;
                        }
                        index++;
                    }
                    while (index < count);
                }
            }
        }

        public override void remove_ItemSend(ApplicationEvents_10_ItemSendEventHandler handler1)
        {
            lock (this)
            {
                int count = this.m_aEventSinkHelpers.Count;
                int index = 0;
                if (0 < count)
                {
                    do
                    {
                        ApplicationEvents_10_SinkHelper helper = (ApplicationEvents_10_SinkHelper) this.m_aEventSinkHelpers[index];
                        if ((helper.m_ItemSendDelegate != null) && (helper.m_ItemSendDelegate.Equals((object) handler1) & 0xff))
                        {
                            this.m_aEventSinkHelpers.RemoveAt(index);
                            this.m_ConnectionPoint.Unadvise(helper.m_dwCookie);
                            if (count <= 1)
                            {
                                Marshal.ReleaseComObject(this.m_ConnectionPoint);
                                this.m_ConnectionPoint = null;
                                this.m_aEventSinkHelpers = null;
                            }
                            break;
                        }
                        index++;
                    }
                    while (index < count);
                }
            }
        }

        public override void remove_MAPILogonComplete(ApplicationEvents_10_MAPILogonCompleteEventHandler handler1)
        {
            lock (this)
            {
                int count = this.m_aEventSinkHelpers.Count;
                int index = 0;
                if (0 < count)
                {
                    do
                    {
                        ApplicationEvents_10_SinkHelper helper = (ApplicationEvents_10_SinkHelper) this.m_aEventSinkHelpers[index];
                        if ((helper.m_MAPILogonCompleteDelegate != null) && (helper.m_MAPILogonCompleteDelegate.Equals((object) handler1) & 0xff))
                        {
                            this.m_aEventSinkHelpers.RemoveAt(index);
                            this.m_ConnectionPoint.Unadvise(helper.m_dwCookie);
                            if (count <= 1)
                            {
                                Marshal.ReleaseComObject(this.m_ConnectionPoint);
                                this.m_ConnectionPoint = null;
                                this.m_aEventSinkHelpers = null;
                            }
                            break;
                        }
                        index++;
                    }
                    while (index < count);
                }
            }
        }

        public override void remove_NewMail(ApplicationEvents_10_NewMailEventHandler handler1)
        {
            lock (this)
            {
                int count = this.m_aEventSinkHelpers.Count;
                int index = 0;
                if (0 < count)
                {
                    do
                    {
                        ApplicationEvents_10_SinkHelper helper = (ApplicationEvents_10_SinkHelper) this.m_aEventSinkHelpers[index];
                        if ((helper.m_NewMailDelegate != null) && (helper.m_NewMailDelegate.Equals((object) handler1) & 0xff))
                        {
                            this.m_aEventSinkHelpers.RemoveAt(index);
                            this.m_ConnectionPoint.Unadvise(helper.m_dwCookie);
                            if (count <= 1)
                            {
                                Marshal.ReleaseComObject(this.m_ConnectionPoint);
                                this.m_ConnectionPoint = null;
                                this.m_aEventSinkHelpers = null;
                            }
                            break;
                        }
                        index++;
                    }
                    while (index < count);
                }
            }
        }

        public override void remove_OptionsPagesAdd(ApplicationEvents_10_OptionsPagesAddEventHandler handler1)
        {
            lock (this)
            {
                int count = this.m_aEventSinkHelpers.Count;
                int index = 0;
                if (0 < count)
                {
                    do
                    {
                        ApplicationEvents_10_SinkHelper helper = (ApplicationEvents_10_SinkHelper) this.m_aEventSinkHelpers[index];
                        if ((helper.m_OptionsPagesAddDelegate != null) && (helper.m_OptionsPagesAddDelegate.Equals((object) handler1) & 0xff))
                        {
                            this.m_aEventSinkHelpers.RemoveAt(index);
                            this.m_ConnectionPoint.Unadvise(helper.m_dwCookie);
                            if (count <= 1)
                            {
                                Marshal.ReleaseComObject(this.m_ConnectionPoint);
                                this.m_ConnectionPoint = null;
                                this.m_aEventSinkHelpers = null;
                            }
                            break;
                        }
                        index++;
                    }
                    while (index < count);
                }
            }
        }

        public override void remove_Quit(ApplicationEvents_10_QuitEventHandler handler1)
        {
            lock (this)
            {
                int count = this.m_aEventSinkHelpers.Count;
                int index = 0;
                if (0 < count)
                {
                    do
                    {
                        ApplicationEvents_10_SinkHelper helper = (ApplicationEvents_10_SinkHelper) this.m_aEventSinkHelpers[index];
                        if ((helper.m_QuitDelegate != null) && (helper.m_QuitDelegate.Equals((object) handler1) & 0xff))
                        {
                            this.m_aEventSinkHelpers.RemoveAt(index);
                            this.m_ConnectionPoint.Unadvise(helper.m_dwCookie);
                            if (count <= 1)
                            {
                                Marshal.ReleaseComObject(this.m_ConnectionPoint);
                                this.m_ConnectionPoint = null;
                                this.m_aEventSinkHelpers = null;
                            }
                            break;
                        }
                        index++;
                    }
                    while (index < count);
                }
            }
        }

        public override void remove_Reminder(ApplicationEvents_10_ReminderEventHandler handler1)
        {
            lock (this)
            {
                int count = this.m_aEventSinkHelpers.Count;
                int index = 0;
                if (0 < count)
                {
                    do
                    {
                        ApplicationEvents_10_SinkHelper helper = (ApplicationEvents_10_SinkHelper) this.m_aEventSinkHelpers[index];
                        if ((helper.m_ReminderDelegate != null) && (helper.m_ReminderDelegate.Equals((object) handler1) & 0xff))
                        {
                            this.m_aEventSinkHelpers.RemoveAt(index);
                            this.m_ConnectionPoint.Unadvise(helper.m_dwCookie);
                            if (count <= 1)
                            {
                                Marshal.ReleaseComObject(this.m_ConnectionPoint);
                                this.m_ConnectionPoint = null;
                                this.m_aEventSinkHelpers = null;
                            }
                            break;
                        }
                        index++;
                    }
                    while (index < count);
                }
            }
        }

        public override void remove_Startup(ApplicationEvents_10_StartupEventHandler handler1)
        {
            lock (this)
            {
                int count = this.m_aEventSinkHelpers.Count;
                int index = 0;
                if (0 < count)
                {
                    do
                    {
                        ApplicationEvents_10_SinkHelper helper = (ApplicationEvents_10_SinkHelper) this.m_aEventSinkHelpers[index];
                        if ((helper.m_StartupDelegate != null) && (helper.m_StartupDelegate.Equals((object) handler1) & 0xff))
                        {
                            this.m_aEventSinkHelpers.RemoveAt(index);
                            this.m_ConnectionPoint.Unadvise(helper.m_dwCookie);
                            if (count <= 1)
                            {
                                Marshal.ReleaseComObject(this.m_ConnectionPoint);
                                this.m_ConnectionPoint = null;
                                this.m_aEventSinkHelpers = null;
                            }
                            break;
                        }
                        index++;
                    }
                    while (index < count);
                }
            }
        }
    }
}

⌨️ 快捷键说明

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