Exemple #1
0
 public WindowsEvents(Interop.IHTMLWindow2 window, IHtmlEditor editor, IHtmlWindow htmlWindow)
 {
     this.window     = window;
     this.editor     = editor;
     this.htmlWindow = (GuruComponents.Netrix.WebEditing.Documents.HtmlWindow)htmlWindow;
     this.ConnectWindow();
     this.ConnectDocument();
 }
Exemple #2
0
 private void Disconnect()
 {
     if (winCookie != 0)
     {
         //try { connectionPointWin.Unadvise(winCookie); }
         //catch { }
         winCookie = 0;
     }
     if (docCookie != 0)
     {
         try { connectionPointDoc.Unadvise(docCookie); }
         catch { }
         docCookie = 0;
     }
     htmlWindow = null;
     editor     = null;
 }