C# Treeview vault folders
Posted: Wed Dec 07, 2011 5:50 am
I'm trying to create a C# userform with a Treeview on it.
What I would like to do is show the repository tree with folders (and files) just like the Vault client interface.
For some reason I'm not able to generate usable data for the treeview.
The things i have tried are:
Note that my application does not require to have a local working folder.
I'ts just a representation of the directory structure of the repository database.
The only thing I have accompiced is the use of the XMLHelper.
Like so: (following example found on this forum, used for listing Checkouts to XMl structure)
I've tried using the ServerOperations.ProcessCommandListFolder But to retrieve any usable data you must pass it trough the XMLHelper.
I would like to have a simple collection or array containing just the folder and files, so i can pass it to my treeview control.
Any help is appreciated
What I would like to do is show the repository tree with folders (and files) just like the Vault client interface.
For some reason I'm not able to generate usable data for the treeview.
The things i have tried are:
Note that my application does not require to have a local working folder.
I'ts just a representation of the directory structure of the repository database.
The only thing I have accompiced is the use of the XMLHelper.
Like so: (following example found on this forum, used for listing Checkouts to XMl structure)
Code: Select all
VaultClientCheckOutList coList = ServerOperations.ProcessCommandListCheckOuts();
// output the checkout list
StringWriter sw = new StringWriter();
System.Xml.XmlTextWriter xml = new XmlTextWriter(sw);
xml.Formatting = System.Xml.Formatting.Indented;
xml.WriteStartElement("root");
xml.WriteStartElement("ListCheckOuts");
XmlHelper.XmlOutput(xml, coList);
xml.WriteEndElement();
I would like to have a simple collection or array containing just the folder and files, so i can pass it to my treeview control.
Any help is appreciated