Exemplo n.º 1
0
        // 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();
        }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
 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;
 }
Exemplo n.º 5
0
        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;
        }
Exemplo n.º 6
0
		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();
		}