Ejemplo n.º 1
0
        void OpenNode(TreeNode node, bool need_select)
        {
            try
            {
                if (treeUserFunctions.SelectedNode != node)
                {
                    treeUserFunctions.SelectedNode = node;
                }

                TaskControlContainer tcc = (TaskControlContainer)node.Tag;//TaskControl tc = (TaskControl)e.Node.Tag;
                TaskControl          tc  = tcc.Contr;

                if (tc.NeedEnter() == false)
                {
                    return;
                }

                //btnShowFunction.Visible = true;

                //if (PrevTC.Select(node, true) == false)
                //    btnShowFunction_Click(null, null);//tc.Select(e.Node, false);tc.Select(e.Node, true);
                CheckTitle();
            }
            catch (Exception ex)
            {
                Common.Log(ex);
            }
        }