public void Dispose() { if (FBrowser != null) { FBrowser.Close(); FBrowserDetachedEvent.WaitOne(); lock (FLock) { FBrowser.Dispose(); FBrowser = null; FTextureResource.Dispose(); } FBrowserAttachedEvent.Dispose(); FBrowserDetachedEvent.Dispose(); } if (FMouseSubscription != null) { FMouseSubscription.Dispose(); FMouseSubscription = null; } if (FKeyboardSubscription != null) { FKeyboardSubscription.Dispose(); FKeyboardSubscription = null; } }
public void Dispose() { lock (FLock) { if (FBrowser != null) { FBrowser.Close(); FBrowser.Dispose(); } FTextureResource.Dispose(); } }
public void Dispose() { if (FBrowser != null) { FBrowser.Close(); FBrowserDetachedEvent.WaitOne(); lock (FLock) { FBrowser.Dispose(); FBrowser = null; FTextureResource.Dispose(); } FBrowserAttachedEvent.Dispose(); FBrowserDetachedEvent.Dispose(); } }