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

📄 explorerevents_eventprovider.cs

📁 破解的飞信源代码
💻 CS
📖 第 1 页 / 共 2 页
字号:
                            break;
                        }
                        index++;
                    }
                    while (index < count);
                }
            }
        }

        public override void remove_BeforeFolderSwitch(ExplorerEvents_BeforeFolderSwitchEventHandler handler1)
        {
            lock (this)
            {
                int count = this.m_aEventSinkHelpers.Count;
                int index = 0;
                if (0 < count)
                {
                    do
                    {
                        ExplorerEvents_SinkHelper helper = (ExplorerEvents_SinkHelper) this.m_aEventSinkHelpers[index];
                        if ((helper.m_BeforeFolderSwitchDelegate != null) && (helper.m_BeforeFolderSwitchDelegate.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_BeforeViewSwitch(ExplorerEvents_BeforeViewSwitchEventHandler handler1)
        {
            lock (this)
            {
                int count = this.m_aEventSinkHelpers.Count;
                int index = 0;
                if (0 < count)
                {
                    do
                    {
                        ExplorerEvents_SinkHelper helper = (ExplorerEvents_SinkHelper) this.m_aEventSinkHelpers[index];
                        if ((helper.m_BeforeViewSwitchDelegate != null) && (helper.m_BeforeViewSwitchDelegate.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_Close(ExplorerEvents_CloseEventHandler handler1)
        {
            lock (this)
            {
                int count = this.m_aEventSinkHelpers.Count;
                int index = 0;
                if (0 < count)
                {
                    do
                    {
                        ExplorerEvents_SinkHelper helper = (ExplorerEvents_SinkHelper) this.m_aEventSinkHelpers[index];
                        if ((helper.m_CloseDelegate != null) && (helper.m_CloseDelegate.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_Deactivate(ExplorerEvents_DeactivateEventHandler handler1)
        {
            lock (this)
            {
                int count = this.m_aEventSinkHelpers.Count;
                int index = 0;
                if (0 < count)
                {
                    do
                    {
                        ExplorerEvents_SinkHelper helper = (ExplorerEvents_SinkHelper) this.m_aEventSinkHelpers[index];
                        if ((helper.m_DeactivateDelegate != null) && (helper.m_DeactivateDelegate.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_FolderSwitch(ExplorerEvents_FolderSwitchEventHandler handler1)
        {
            lock (this)
            {
                int count = this.m_aEventSinkHelpers.Count;
                int index = 0;
                if (0 < count)
                {
                    do
                    {
                        ExplorerEvents_SinkHelper helper = (ExplorerEvents_SinkHelper) this.m_aEventSinkHelpers[index];
                        if ((helper.m_FolderSwitchDelegate != null) && (helper.m_FolderSwitchDelegate.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_SelectionChange(ExplorerEvents_SelectionChangeEventHandler handler1)
        {
            lock (this)
            {
                int count = this.m_aEventSinkHelpers.Count;
                int index = 0;
                if (0 < count)
                {
                    do
                    {
                        ExplorerEvents_SinkHelper helper = (ExplorerEvents_SinkHelper) this.m_aEventSinkHelpers[index];
                        if ((helper.m_SelectionChangeDelegate != null) && (helper.m_SelectionChangeDelegate.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_ViewSwitch(ExplorerEvents_ViewSwitchEventHandler handler1)
        {
            lock (this)
            {
                int count = this.m_aEventSinkHelpers.Count;
                int index = 0;
                if (0 < count)
                {
                    do
                    {
                        ExplorerEvents_SinkHelper helper = (ExplorerEvents_SinkHelper) this.m_aEventSinkHelpers[index];
                        if ((helper.m_ViewSwitchDelegate != null) && (helper.m_ViewSwitchDelegate.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 + -