void Events_BookmarkPage(intelloTech.ProScript.WebElementEventArgs e) { addtoBookmarksMenu(e.URL, e.Title); StreamWriter tr; tr = File.AppendText("bookmarks.txt"); tr.WriteLine(e.Title); tr.WriteLine(e.URL); tr.Close(); }
void Events_MsgBox(intelloTech.ProScript.MsgBoxEventArgs e) { MessageBox.Show(e.Text, e.Title); }
void Events_ClearCache(intelloTech.ProScript.BasicEventArgs e) { Debug.WriteLine("A plugin wanted to clear the cache. That's unsupported in this version of Daedalus."); }
void Events_ChangeSource(intelloTech.ProScript.SourceEventArgs e) { //JS method //gwb.RunJS(@"document.write('"+e.NewSource+"');"); //Body-only method gwb.Document.Body.InnerHtml = e.NewSource; }
void Events_ClearHistory(intelloTech.ProScript.BasicEventArgs e) { deleteHistory(); }
void Events_CloseWindow(intelloTech.ProScript.BasicEventArgs e) { this.Close(); }
void Events_OpenDownloads(intelloTech.ProScript.BasicEventArgs e) { Skybound.Gecko.ChromeDialog dialog = new Skybound.Gecko.ChromeDialog(); dialog.Name = "DownloadsForm"; dialog.Show(); dialog.WebBrowser.Navigate("chrome://mozapps/content/downloads/downloads.xul"); }
void Events_OpenOptions(intelloTech.ProScript.BasicEventArgs e) { try { Form2 fma = new Form2(); fma.Show(); } catch { } }
void Events_ViewSource(intelloTech.ProScript.URLElementEventArgs e) { gwb.ViewSource(); }