Пример #1
0
 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();
 }
Пример #2
0
 void Events_MsgBox(intelloTech.ProScript.MsgBoxEventArgs e)
 {
     MessageBox.Show(e.Text, e.Title);
 }
Пример #3
0
 void Events_ClearCache(intelloTech.ProScript.BasicEventArgs e)
 {
     Debug.WriteLine("A plugin wanted to clear the cache. That's unsupported in this version of Daedalus.");
 }
Пример #4
0
 void Events_ChangeSource(intelloTech.ProScript.SourceEventArgs e)
 {
     
         //JS method
         //gwb.RunJS(@"document.write('"+e.NewSource+"');");
         //Body-only method
         gwb.Document.Body.InnerHtml = e.NewSource;
 }
Пример #5
0
 void Events_ClearHistory(intelloTech.ProScript.BasicEventArgs e)
 {
     deleteHistory();
 }
Пример #6
0
 void Events_CloseWindow(intelloTech.ProScript.BasicEventArgs e)
 {
     this.Close();
 }
Пример #7
0
 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");
 }
Пример #8
0
 void Events_OpenOptions(intelloTech.ProScript.BasicEventArgs e)
 {
     try
     {
         Form2 fma = new Form2();
         fma.Show();
     }
     catch { }
 }
Пример #9
0
 void Events_ViewSource(intelloTech.ProScript.URLElementEventArgs e)
 {
     gwb.ViewSource();
 }