private void ShowHtmlIE(string html, string url, string title) { this.Dispatcher.Invoke(() => { this.rtbox_Resource_IE.Document = new FlowDocument(new Paragraph(new Run(html))); HtmlStruct htmlStruct = new HtmlStruct() { Content = html, Url = url, Title = title }; RecordHtmlIE(htmlStruct); }); }
public async Task <StructResponse> GetStruct(string schemaType) { try { HtmlStruct structure = new HtmlStruct(this, schemaType); return(await structure.Get()); } catch (Exception e) { return(new StructResponse() { Url = Url, StatusCode = HttpStatusCode.BadRequest, Struct = null, ErrorMessage = e.Message }); } }
private void RecordHtmlIE(HtmlStruct htmlStruct) { recordListIE.Add(htmlStruct); this.combox_Record_IE.ItemsSource = null; this.combox_Record_IE.ItemsSource = recordListIE.Select(x => x.Url);; }