ZForge.Controls.TreeViewAdv.Tree.IncrementalSearch.DoContinuousSearch C# (CSharp) Метод

DoContinuousSearch() приватный Метод

private DoContinuousSearch ( ) : bool
Результат bool
        private bool DoContinuousSearch()
        {
            bool found = false;
            if (!String.IsNullOrEmpty(_searchString))
            {
                TreeNodeAdv node = null;
                if (_tree.SelectedNode != null)
                    node = _tree.SelectedNode;
                if (node == null)
                    node = _tree.Root.NextVisibleNode;

                if (!String.IsNullOrEmpty(_searchString))
                {
                    foreach (string label in IterateNodeLabels(node))
                    {
                        if (label.StartsWith(_searchString))
                        {
                            found = true;
                            _tree.SelectedNode = _currentNode;
                            break;
                        }
                    }
                }
            }
            return found;
        }