private String GetHandlerScript(ITreeNode structure) { return (structure.Children.Count == 0 ? handler.GetScript(String.Format("'select|{0}'", GetKey(structure))) : handler.GetScript(String.Format("'navigate|{0}'", GetKey(structure)))); }