Ejemplo n.º 1
1
        /// <summary>
        /// Add an html sample to the tree and to all samples collection
        /// </summary>
        private void AddTreeItem(TreeViewItem root, HtmlSample sample)
        {
            var html = sample.Html.Replace("$$Release$$", _htmlPanel.GetType().Assembly.GetName().Version.ToString());

            var node = new TreeViewItem();
            node.Header = sample.Name;
            node.Tag = new HtmlSample(sample.Name, sample.FullName, html);
            root.Items.Add(node);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Add an html sample to the tree and to all samples collection
 /// </summary>
 private void AddTreeNode(TreeNode root, HtmlSample sample)
 {
     var node = new TreeNode(sample.Name);
     node.Tag = new HtmlSample(sample.Name, sample.FullName, sample.Html);
     root.Nodes.Add(node);
 }