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);
}
}