예제 #1
0
 public void OnBeforeDocumentUnregister(object sender, DocumentRegisterationEventArgs eventArgs)
 {
     foreach (var subscriber in _subscriptionProvider.GetSubscribers<IWindowEventSubscriber> (eventArgs.DocumentHandle))
       {
     PrepareNavigation -= subscriber.OnPrepareNavigation;
     ViewCreated -= subscriber.OnViewCreated;
       }
 }
예제 #2
0
 private void OnDocumentRegistered (object sender, DocumentRegisterationEventArgs e)
 {
   HtmlDocument document;
   if (_currentDocuments != null && _currentDocuments.TryGetValue (e.DocumentHandle, out document))
     document.InvokeScript (c_registrationDoneCallback);
 }