Exemplo n.º 1
0
        private void SearchDiscoveryCallback(DataNode node)
        {
            _mainController.SelectNode(node);
            _mainController.ExpandSelectedNode();

            if (_searchForm != null)
            {
                _searchForm.DialogResult = DialogResult.OK;
                _searchForm = null;
            }

            _currentFindNode = node;
        }
Exemplo n.º 2
0
        private void findBlockToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FindBlock form = new FindBlock(_nodeTree.SelectedNode.Tag as DataNode);

            if (form.ShowDialog() == DialogResult.OK)
            {
                if (form.Result != null)
                {
                    _controller.SelectNode(form.Result);
                    _controller.ExpandSelectedNode();
                    _controller.ScrollNode(form.Result);
                }
                else
                {
                    MessageBox.Show("Chunk not found.");
                }
            }
        }