Ejemplo n.º 1
0
 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;
     }
 }
Ejemplo n.º 2
0
 public void Dispose()
 {
     FBrowserHost.CloseBrowser(true);
     FBrowserDetachedEvent.WaitOne();
     FBrowserAttachedEvent.Dispose();
     FBrowserDetachedEvent.Dispose();
     if (FMouseSubscription != null)
     {
         FMouseSubscription.Dispose();
         FMouseSubscription = null;
     }
     if (FKeyboardSubscription != null)
     {
         FKeyboardSubscription.Dispose();
         FKeyboardSubscription = null;
     }
     DestroyResources();
 }
Ejemplo n.º 3
0
 public void Dispose()
 {
     FBrowserHost.CloseBrowser(true);
     FBrowserDetachedEvent.WaitOne();
     FBrowserAttachedEvent.Dispose();
     FBrowserDetachedEvent.Dispose();
     FRequestContext.Dispose();
     if (FMouseSubscription != null)
     {
         FMouseSubscription.Dispose();
         FMouseSubscription = null;
     }
     if (FKeyboardSubscription != null)
     {
         FKeyboardSubscription.Dispose();
         FKeyboardSubscription = null;
     }
 }