private void SelectedDocument(object sender, TreeViewEventArgs e) { switchingDoc = true; CurrentNode = e.Node as DocNode; (e.Node as DocNode).Doc.Load(); DocNode.DisplayNames(); }