Kyle Wisdom

Kyle Wisdom

  • NA
  • 1
  • 1.4k

Allow users to add nodes to treeview (permanently)

Jul 30 2015 1:06 PM
Hey everyone,
 
 I created a Wiki as one of my first projects (have done close to 15 different programs now, mostly using C# and MySQL, but the Wiki was my first one).
 
Here is the code: http://csharppad.com/gist/ffe94448d7c912be933f
 
Here is an example of how I am doing this.
 
Right now, if we need to enter a new note into our Wiki, I have to go into Visual Studio, add a child node in the appropriate place, and then I have to do this so it populates the window on the right with the correct note:
 
if (e.Node.Name == "avatar")
{
richTextBox1.LoadFile("G:\\CS\\NET\\Wiki\\Wiki Notes\\avatar.rtf");
}
 
It will load this:
 
 
I am fine with just doing it the Visual Studio way, but the other two techs in my department don't know C# and don't care to learn it (even though since I did all of the legwork, it would just be copying/pasting, and recompiling the program).
 
I am hoping there is a way to have a button they can press and add an additional note along with the path to the file that needs to display in the right pane.
 
Any tips?
 
Thanks!
 
Kyle

Answers (1)