public bool IsVisible(SharpTreeNode[] selectedNodes)
 {
     return (selectedNodes.Count() == 1)
            && (selectedNodes.Single() is TypeTreeNode);
 }