Beispiel #1
0
        public ScriptConsole(Browser browser, string code = null)
        {
            InitializeComponent();

            this.browser = browser;

            this.Font = Resource.MainFont;

            txtCode.Font = Resource.CodeFont;
            txtCode.SetHighlighting("C#");

            if (code != null)
                txtCode.Text = code;
        }
Beispiel #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;
 }
Beispiel #3
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;
        }
Beispiel #4
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();
		}
Beispiel #5
0
 public ScriptInterface(Browser browser)
 {
     this.browser = browser;
 }