public ExtendedDragEventHandlerArgs(
     IDataObject data,
     int keyState,
     int x,
     int y,
     DragDropEffects allowedEffect,
     DragDropEffects effect,
     HtmlDocumentHandle document = default (HtmlDocumentHandle))
     : base(data, keyState, x, y, allowedEffect, effect)
 {
     Document = document;
 }
Esempio n. 2
0
 public Condition(dynamic condition)
 {
     try
       {
     EventID = condition.EventID;
     Document = new HtmlDocumentHandle (Guid.Parse (condition.DocumentHandle));
     Criteria = condition.Criteria;
       }
       catch (RuntimeBinderException binderException)
       {
     throw new ArgumentException ("The provided object does not have the required properties 'EventID', 'DocumentHandle', and 'Criteria'.");
       }
 }
Esempio n. 3
0
 public override void OnBeforeUnload(HtmlDocumentHandle document)
 {
     IsLoaded = false;
 }
Esempio n. 4
0
 public override void OnBeforeLoad(HtmlDocumentHandle document)
 {
     IsLoaded = true;
 }
Esempio n. 5
0
 public new void OnBeforeUnload(HtmlDocumentHandle document)
 {
     IsLoaded = false;
 }
Esempio n. 6
0
 public new void OnBeforeLoad(HtmlDocumentHandle document)
 {
     IsLoaded = true;
 }
 private void RemoveDocument (HtmlDocumentHandle handle)
 {
   _currentDocuments.Remove (handle);
   RemoveSubscribedAddIns (_subscriptionProvider, handle);
   _documentHandleRegistry.UnregisterDocumentHandle (handle);
 }
 private void RemoveSubscribedAddIns (ISubscriptionProvider subscriptionProvider, HtmlDocumentHandle handle)
 {
   foreach (var subscriber in subscriptionProvider.GetSubscribers<IBrowserEventSubscriber> (handle))
     Unsubscribe (subscriber);
 }
 private void AddDocument (HtmlDocumentHandle handle, HtmlDocument document)
 {
   _currentDocuments[handle] = document;
   _documentHandleRegistry.RegisterDocumentHandle (handle, this);
   AddSubscribedAddIns (_subscriptionProvider, handle);
 }
 public DocumentRegisterationEventArgs(HtmlDocumentHandle documentHandle)
 {
     ArgumentUtility.CheckNotNull ("documentHandle", documentHandle);
       DocumentHandle = documentHandle;
 }