ClearCanvas.Desktop.View.WinForms.WorkspaceView.Dispose C# (CSharp) Method

Dispose() protected method

Disposes of this object.
protected Dispose ( bool disposing ) : void
disposing bool
return void
		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);
		}