BioCore  5.0.0
A Windows .NET microscopy library and application for viewing, editing, and annotating images.
Loading...
Searching...
No Matches
BioCore.XmlTreeDisplay Class Reference
Inheritance diagram for BioCore.XmlTreeDisplay:

Public Member Functions

 XmlTreeDisplay (string xml)
 

Detailed Description

Definition at line 19 of file XMLView.cs.

Constructor & Destructor Documentation

◆ XmlTreeDisplay()

BioCore.XmlTreeDisplay.XmlTreeDisplay ( string xml)

Definition at line 24 of file XMLView.cs.

25 {
26 treeXml.Nodes.Clear();
27 this.Controls.Add(treeXml);
28 // Load the XML Document
29 XmlDocument doc = new XmlDocument();
30 try
31 {
32 doc.LoadXml(xml);
33 //doc.Load("");
34 }
35 catch (Exception err)
36 {
37 MessageBox.Show(err.Message);
38 return;
39 }
40
41 ConvertXmlNodeToTreeNode(doc, treeXml.Nodes);
42 treeXml.Nodes[0].ExpandAll();
43 treeXml.Dock = DockStyle.Fill;
44 }

The documentation for this class was generated from the following file: