// Script Store private void OpenScriptStore(object sender, EventArgs e) { Browser browser = new Browser(); StringReader sr = new StringReader(Resource.ArcherSctiptStore); browser.Argument = sr.ReadLine(); browser.AdditionalScript = sr.ReadToEnd(); sr.Close(); browser.Show(); }
private void webBrowser_NewWindow2(object sender, ys.NewWindow2EventArgs e) { Browser browser = new Browser() { NavigateOnStartup = false, Argument = this.Argument, jQuery = this.jQuery, AdditionalScript = this.AdditionalScript, }; browser.Show(); e.PPDisp = browser.webBrowser.Application; }
public static object InjectScript() { Browser browser = new Browser(); StringReader sr = new StringReader(cmd_additional); browser.Argument = sr.ReadLine(); browser.AdditionalScript = sr.ReadToEnd(); sr.Close(); browser.Show(); return(null); }
private void webBrowser_NewWindow2(object sender, ys.NewWindow2EventArgs e) { Browser browser = new Browser() { NavigateOnStartup = false, Argument = this.Argument, jQuery = this.jQuery, AdditionalScript = this.AdditionalScript, }; browser.Show(); e.PPDisp = browser.webBrowser.Application; }
public static object InjectScript_jQuery() { Browser browser = new Browser(); browser.jQuery = true; StringReader sr = new StringReader(cmd_additional); browser.Argument = sr.ReadLine(); browser.AdditionalScript = sr.ReadToEnd(); sr.Close(); browser.Show(); return null; }
private void scriptStoreMenuItem_Click(object sender, EventArgs e) { Browser browser = new Browser(); StringReader sr = new StringReader(Resource.ArcherSctiptStore); browser.Argument = sr.ReadLine(); browser.AdditionalScript = sr.ReadToEnd(); sr.Close(); browser.Show(); }