public override IfacesEnumsStructsClasses.IHTMLElement loadInfoFromElement(IfacesEnumsStructsClasses.IHTMLElement e) { if (e == null) return null ; submitForm sform = new submitForm(this.pform); sform.loadElement(e); if (sform.ShowDialog() != DialogResult.OK) return null ; string listObj = ""; for (int i = 0; i < sform.listView2.Items.Count; i++) { listObj += sform.listView2.Items[i].Text + ";"; } IfacesEnumsStructsClasses.IHTMLElement2 e2 = (IfacesEnumsStructsClasses.IHTMLElement2)e; IfacesEnumsStructsClasses.IHTMLElementCollection c = (e2.getElementsByTagName("input")) as IfacesEnumsStructsClasses.IHTMLElementCollection; if (c == null) return null ; foreach (IfacesEnumsStructsClasses.IHTMLElement ce in c) { e = ce; break; } e.setAttribute("listObj", listObj, 1); e.setAttribute("action", sform.textBox1.Text, 1); return e; }
public override IfacesEnumsStructsClasses.IHTMLElement loadInfoFromElement(IfacesEnumsStructsClasses.IHTMLElement e) { if (e == null) return null ; IfacesEnumsStructsClasses.IHTMLElement2 e2 = (IfacesEnumsStructsClasses.IHTMLElement2)e; IfacesEnumsStructsClasses.IHTMLElementCollection c = (e2.getElementsByTagName("label")) as IfacesEnumsStructsClasses.IHTMLElementCollection; if (c == null) return null; foreach (IfacesEnumsStructsClasses.IHTMLElement ce in c) { e = ce; break; } IfacesEnumsStructsClasses.IHTMLElement titlee = (IfacesEnumsStructsClasses.IHTMLElement)e; iframeForm form = new iframeForm(); form.textBox1.Text = e.innerText; c = (e2.getElementsByTagName("iframe")) as IfacesEnumsStructsClasses.IHTMLElementCollection; if (c == null) return null ; foreach (IfacesEnumsStructsClasses.IHTMLElement ce in c) { e = ce; break; } if (e.getAttribute("src", 1) != null) { string http = e.getAttribute("src", 1).ToString(); ; http = http.Replace("http://", ""); form.textBox2.Text = http; } if (form.ShowDialog() != System.Windows.Forms.DialogResult.OK) return null ; string url = form.textBox2.Text; if (!url.StartsWith("http://")) url = "http://" + url; string title = form.textBox1.Text; if (title.Equals("")) title = url; e.setAttribute("src", url, 1); titlee.innerText = title; return e; //IfacesEnumsStructsClasses.IHTMLDocument2 doc = (IfacesEnumsStructsClasses.IHTMLDocument2)e.document; // doc.foc }