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