Ejemplo n.º 1
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("チャンクがないぞ!");
                }
            }
        }
Ejemplo 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.");
     }
 }