Ejemplo n.º 1
0
        protected void FindByName()
        {
            FormFind form = new FormFind();

            if (form.ShowDialog() == DialogResult.OK)
            {
                ClearFound();

                FindNodes(form.textBoxName.Text, myFindNodes);

                SetupFound();

                treeView.Focus();
            }

            form.Dispose();
        }
Ejemplo n.º 2
0
        protected void FindByID()
        {
            FormFind form = new FormFind();

            form.labelInfo.Text = "ID:";

            if (form.ShowDialog() == DialogResult.OK)
            {
                ClearFound();

                SelectNodesByID(
                    UInt32.Parse(form.textBoxName.Text), myFindNodes);

                SetupFound();

                treeView.Focus();
            }

            form.Dispose();
        }