public void AfterNavigate(object iDisp, ref object URL) { SHDocVw.WebBrowser IEDocument = GetIEDocument(); MakeVisible(); //mshtml.HTMLDocument HTML = (mshtml.HTMLDocument) IEDocument.Document; //HTML.cookie //HTML.attachEvent(iDisp) btnDownload.Enabled = videoSites.IsVideoSite(IEDocument.LocationURL); }
public void AfterNavigate(object iDisp, ref object URL) { SHDocVw.WebBrowser IEDocument = GetIEDocument(); MakeVisible(); mshtml.HTMLDocument HTML = (mshtml.HTMLDocument)IEDocument.Document; // save cookies //StreamWriter sw=new StreamWriter(Settings.MyDownloaderPath + "_cookie"); //sw.Write(HTML.cookie); //sw.Close(); //HTML.cookie //HTML.attachEvent(iDisp) btnDownload.Enabled = videoSites.IsVideoSite(IEDocument.LocationURL); }