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(); }
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; } }
private static string LongDescriptionDocument(HtmlMonkey.HtmlDocument document) => string.Empty;
private static string ShortDescriptionDocument(HtmlMonkey.HtmlDocument document) => $"[{document.GetType().ToString()}]";
private static void PopulatePropertiesDocument(HtmlMonkey.HtmlDocument document, ListView listView) { InitializeListView(DocumentColumns, listView); listView.Items.Add("Title").SubItems.Add(document.Title); }