protected override void Dispose(bool disposing)
{
if (disposing)
{
if (_tabPage != null)
{
// Remove the tab
this.DesktopView.RemoveWorkspaceView(this);
_dialogBoxManager.Dispose();
_dialogBoxManager = null;
_control.Dispose();
_control = null;
_tabPage.Dispose();
_tabPage = null;
}
}
base.Dispose(disposing);
}