protected override void dispose( bool disposeManagedResources )
{
if ( !IsDisposed )
{
if ( disposeManagedResources )
{
DisposeD3DResources();
// Dispose Other resources
if ( hWnd != null && !_isExternal )
{
WindowEventMonitor.Instance.UnregisterWindow( this );
( (SWF.Form)hWnd ).Dispose();
}
}
// make sure this window is no longer active
hWnd = null;
IsActive = false;
_isClosed = true;
}
// If it is available, make the call to the
// base class's Dispose(Boolean) method
base.dispose( disposeManagedResources );
}