protected virtual void Dispose(bool disposing) { if (mIsDisposed) { return; } Debug.Print("Disposing of CarbonGLNative window."); CursorVisible = true; API.DisposeWindow(window.Handle); mIsDisposed = true; mExists = false; CG.SetLocalEventsSuppressionInterval(0.25); if (disposing) { mWindows.Remove(window.Handle); window.Dispose(); window = null; } DisposeUPP(); Disposed(this, EventArgs.Empty); }
protected virtual void Dispose(bool disposing) { if (mIsDisposed) { return; } Debug.Print("Disposing of CarbonGLNative window."); API.DisposeWindow(window.WindowRef); mIsDisposed = true; mExists = false; if (disposing) { mWindows.Remove(window.WindowRef); window.Dispose(); window = null; } DisposeUPP(); }