Exemplo n.º 1
0
 /// <summary>
 /// Associates the tree view.
 /// </summary>
 /// <param name="shellTreeView">The shell tree view.</param>
 private void AssociateShellTreeView(ShellTreeView shellTreeView)
 {
     //  We'll need to know when an item is selected.
     shellTreeView.AfterSelect += shellTreeView_AfterSelect;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Deassociates the shell tree view.
 /// </summary>
 /// <param name="shellTreeView">The shell tree view.</param>
 private void DeassociateShellTreeView(ShellTreeView shellTreeView)
 {
     //  Remove the event handler.
     shellTreeView.AfterSelect -= shellTreeView_AfterSelect;
 }