Example #1
0
        public void LoadDocument(HtmlMonkey.HtmlDocument document)
        {
            tvwNodes.Nodes.Clear();
            TreeNode treeNode = tvwNodes.Nodes.Add("Document");

            treeNode.Tag        = document;
            treeNode.ImageIndex = treeNode.SelectedImageIndex = GetImageIndex(document);
            LoadNodes(document.RootNodes, treeNode);
            tvwNodes.ExpandAll();
            treeNode.EnsureVisible();
        }
Example #2
0
 public frmDetails(object node)
 {
     InitializeComponent();
     Debug.Assert(node != null);
     if (node is HtmlNode)
     {
         Node = node as HtmlNode;
     }
     else if (node is HtmlMonkey.HtmlDocument)
     {
         Document = node as HtmlMonkey.HtmlDocument;
     }
 }
Example #3
0
 private static string LongDescriptionDocument(HtmlMonkey.HtmlDocument document) => string.Empty;
Example #4
0
 private static string ShortDescriptionDocument(HtmlMonkey.HtmlDocument document) => $"[{document.GetType().ToString()}]";
Example #5
0
 private static void PopulatePropertiesDocument(HtmlMonkey.HtmlDocument document, ListView listView)
 {
     InitializeListView(DocumentColumns, listView);
     listView.Items.Add("Title").SubItems.Add(document.Title);
 }