Example #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;
     }
 }
Example #2
0
 public void Dispose()
 {
     lock (FLock)
     {
         if (FBrowser != null)
         {
             FBrowser.Close();
             FBrowser.Dispose();
         }
         FTextureResource.Dispose();
     }
 }
Example #3
0
 public void Dispose()
 {
     if (FBrowser != null)
     {
         FBrowser.Close();
         FBrowserDetachedEvent.WaitOne();
         lock (FLock)
         {
             FBrowser.Dispose();
             FBrowser = null;
             FTextureResource.Dispose();
         }
         FBrowserAttachedEvent.Dispose();
         FBrowserDetachedEvent.Dispose();
     }
 }