Пример #1
0
 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);
     });
 }
Пример #2
0
 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
         });
     }
 }
Пример #3
0
 private void RecordHtmlIE(HtmlStruct htmlStruct)
 {
     recordListIE.Add(htmlStruct);
     this.combox_Record_IE.ItemsSource = null;
     this.combox_Record_IE.ItemsSource = recordListIE.Select(x => x.Url);;
 }