Exemplo n.º 1
0
        private void FindNode()
        {
            _preSearchSelectedId = string.IsNullOrEmpty(_treeHelper.SelectedId) ? _preSearchSelectedId : _treeHelper.SelectedId;

            Cursor.Current = Cursors.WaitCursor;
            Dictionary <string, TreeNode> _result = _fileHelper.CodeCollectionToForm(textBoxFind.Text);

            if (_result.ContainsKey(_preSearchSelectedId))
            {
                _treeHelper.SetSelectedNode(_result[_preSearchSelectedId], true);
            }

            Cursor.Current = Cursors.Default;
        }