Example #1
0
        public bool AddNode(int value)
        {
            if (_Tree.Check(value) == false)
            {
                MessageBox.Show("Tree does not contain value " + value, "Add Error", MessageBoxButtons.RetryCancel, MessageBoxIcon.Hand);
                return(false);
            }


            txtOutput.Clear();
            BeginDraw(true);
            _queue = _Tree.FindPath(value);
            BeginDraw(false);

            return(true);
        }