Yaircc.UI.IRCChannel.Dispose C# (CSharp) Метод

Dispose() публичный Метод

Releases all resources used by the IRCChannel.
public Dispose ( ) : void
Результат void
        public void Dispose()
        {
            this.marshal.TabHost.InvokeAction(() =>
                {
                    if ((this.marshal.TabHost.SelectedTab == this.TabPage) && (this.marshal.TabHost.SelectedIndex > 0))
                    {
                        this.marshal.TabHost.SelectedIndex--;
                    }

                    this.marshal.TabHost.TabPages.Remove(this.TabPage);
                    this.TabPage.Dispose();
                    this.users.Clear();
                });

            if (this.disposed != null)
            {
                this.disposed.Invoke(this);
            }
        }