private void buildGui() { //var groupBoxes = this.add_SplitContainer_2x2("Directory","WebEditor","Config","HtmlCode",true, 100,40,40); var groupBoxes = this.add_1x1("WebEditor (Edit on page)", "HtmlCode (see results in code)"); browser = groupBoxes[0].add_WebBrowserWithLocationBar(); htmlCode = groupBoxes[1].add_SourceCodeViewer(); //directory = groupBoxes[0].add_Directory(startDir); //browser = groupBoxes[1].add_WebBrowserWithLocationBar(); //htmlCode = groupBoxes[3].add_SourceCodeViewer(); htmlCode.astDetails(false); // build config /*groupBoxes[2].add_Link("toggle edit mode", 20 ,10,()=> setEditMode(!getEditMode()) ); * groupBoxes[2].add_Link("refresh", 40 ,10,()=> updateHtmlPage() ); * groupBoxes[2].add_Link("take screenshot", 60 ,10,()=> takeScreenShot() ); * * pictureBox = groupBoxes[2].add_PictureBox(70,10); * pictureBox.anchor_All(); * takeScreenShot(); * // setup controls events * directory._onDirectoryDoubleClick+=selectedFileOrFolder; */ browser.onDocumentCompleted += onDocumentCompleted; //htmlCode.eDocumentDataChanged += htmlTextChanged; // fine tune loaded controls behaviour //directory._WatchFolder = true; //directory.AllowDrop = false; htmlCode.editor().colorCodeForExtension(".html"); // remove on next code Sync ((O2BrowserIE)browser).AllowWebBrowserDrop = false; }
private void buildGui() { //var groupBoxes = this.add_SplitContainer_2x2("Directory","WebEditor","Config","HtmlCode",true, 100,40,40); var groupBoxes = this.add_1x1("WebEditor (Edit on page)","HtmlCode (see results in code)"); browser = groupBoxes[0].add_WebBrowserWithLocationBar(); htmlCode = groupBoxes[1].add_SourceCodeViewer(); //directory = groupBoxes[0].add_Directory(startDir); //browser = groupBoxes[1].add_WebBrowserWithLocationBar(); //htmlCode = groupBoxes[3].add_SourceCodeViewer(); htmlCode.astDetails(false); // build config /*groupBoxes[2].add_Link("toggle edit mode", 20 ,10,()=> setEditMode(!getEditMode()) ); groupBoxes[2].add_Link("refresh", 40 ,10,()=> updateHtmlPage() ); groupBoxes[2].add_Link("take screenshot", 60 ,10,()=> takeScreenShot() ); pictureBox = groupBoxes[2].add_PictureBox(70,10); pictureBox.anchor_All(); takeScreenShot(); // setup controls events directory._onDirectoryDoubleClick+=selectedFileOrFolder; */ browser.onDocumentCompleted +=onDocumentCompleted; //htmlCode.eDocumentDataChanged += htmlTextChanged; // fine tune loaded controls behaviour //directory._WatchFolder = true; //directory.AllowDrop = false; htmlCode.editor().colorCodeForExtension(".html"); // remove on next code Sync ((O2BrowserIE)browser).AllowWebBrowserDrop = false; }
public static IO2HtmlPage submit(this IO2Browser o2Browser, IO2HtmlForm form) { /*"submiting form:{0}".format(form.name()).info(); * " to :{0}".format(form.action()).debug(); * " with:{0}".format(form.formData()).debug(); */ return(o2Browser.POST(form.action(), form.formData())); }
public void buildGui() { var controls = this.add_1x1("Text to convert","converted links",true,200); textBox = controls[0].add_RichTextBox(); webBrowser = controls[1].add_WebBrowser(); // events textBox.onDrop(convertFile); textBox.TextChanged += (sender,e) => convertText(textBox.Text); }
public void buildGui() { var controls = this.add_1x1("Text to convert", "converted links", true, 200); textBox = controls[0].add_RichTextBox(); webBrowser = controls[1].add_WebBrowser(); // events textBox.onDrop(convertFile); textBox.TextChanged += (sender, e) => convertText(textBox.Text); }
public static void add_Config_Tab(TabControl tabControl, IO2Browser webBrowser) { if (webBrowser == null) { PublicDI.log.error("webBrowser was null"); } var config_TabPage = tabControl.add_Tab("--config--"); config_TabPage.add_CheckBox("Html Edit Mode", 20, 10, (value) => webBrowser.HtmlEditMode = value); /*groupBoxes[1].add_CheckBox("Html Edit Mode", 20,10, * (value)=>{webBrowser.HtmlEditMode = value;});*/ }
private void buildGui(string startUrl) { // test values make these links on top of the location bar // var startUrl = @"http://www.google.co.uk"; //var startUrl = @"http://www.owasp.org/index.php/o2"; groupBoxes = this.add_SplitContainer_1x2("Browser", "Pages Loaded", "WebPage Info", true, 100, 100); webBrowser = groupBoxes[0].add_WebBrowserWithLocationBar(startUrl); ((O2BrowserIE)webBrowser).silent(true); htmlPages_TreeView = groupBoxes[1].add_TreeView(); htmlPages_TreeView.HideSelection = false; webBrowser.onDocumentCompleted += pageLoaded; htmlPages_TreeView.afterSelect <IO2HtmlPage>(showPageDetails); }
private void buildGui(string startUrl) { // test values make these links on top of the location bar // var startUrl = @"http://www.google.co.uk"; //var startUrl = @"http://www.owasp.org/index.php/o2"; groupBoxes = this.add_SplitContainer_1x2("Browser","Pages Loaded","WebPage Info", true, 100,100); webBrowser = groupBoxes[0].add_WebBrowserWithLocationBar(startUrl); ((O2BrowserIE)webBrowser).silent(true); htmlPages_TreeView = groupBoxes[1].add_TreeView(); htmlPages_TreeView.HideSelection = false; webBrowser.onDocumentCompleted += pageLoaded; htmlPages_TreeView.afterSelect<IO2HtmlPage>(showPageDetails); }
public void onBrowserLocationChanged(IO2Browser _browser, string file) { log.info("file: {0}", file); loadFile(file); }
public static IO2HtmlPage GET(this IO2Browser webBrowser, string url) { return(webBrowser.submitRequest_GET_Sync(url, "", "")); }
public static IO2HtmlPage POST(this IO2Browser webBrowser, string url, string targetFrame, Dictionary <string, string> parameters) { return(webBrowser.submitRequest_POST_Sync(url, targetFrame, parameters)); }
public static IO2HtmlPage POST(this IO2Browser webBrowser, string url, string postString) { return(webBrowser.submitRequest_POST_Sync(url, "", postString)); }
public static IO2HtmlPage GET(this IO2Browser webBrowser, string url, Dictionary <string, string> parameters) { return(webBrowser.submitRequest_GET_Sync(url, "", parameters)); }
public static IO2HtmlPage GET(this IO2Browser webBrowser, string url, string parametersString) { return(webBrowser.submitRequest_GET_Sync(url, "", parametersString)); }
public static void add_Config_Tab(TabControl tabControl, IO2Browser webBrowser) { if (webBrowser == null) PublicDI.log.error("webBrowser was null"); var config_TabPage = tabControl.add_Tab("--config--"); config_TabPage.add_CheckBox("Html Edit Mode", 20,10, (value)=> webBrowser.HtmlEditMode = value); /*groupBoxes[1].add_CheckBox("Html Edit Mode", 20,10, (value)=>{webBrowser.HtmlEditMode = value;});*/ }