示例#1
0
        private void Insert(BeTreeNode src, BeTreeNode insert)
        {
            if (insert.SrcTreeID != src.SrcTreeID)
            {
                return;
            }
            RunTimeNodeData data = _datas[src.SrcTreeID];

            data.Insert(data.GetNodeParam(src.NodeID), data.GetNodeParam(insert.NodeID));
            _curOpenningCtrl.Canvas.RefreshNodeParam(data.Root);
            SetNodeShowValue(data.ID);
        }
示例#2
0
        private void CutAndCopy(BeTreeNode arg1, BeTreeNode arg2)
        {
            RunTimeNodeData data1 = _datas[arg1.SrcTreeID];
            RunTimeNodeData data2 = _datas[arg2.SrcTreeID];

            NodeParam root = data1.GetNodeParam(arg1.NodeID);
            NodeParam copy = data2.GetNodeParam(arg2.NodeID);

            if (!data1.CopyChild(root, copy))
            {
                return;
            }
            data2.DeleteNode(copy.NodeID);

            if (data1 == data2)
            {
                _id2Windows[data1.ID].Canvas.RefreshNodeParam(data1.Root);
                SetNodeShowValue(data1.ID);
            }
            else
            {
                _id2Windows[data1.ID].Canvas.RefreshNodeParam(data1.Root);
                _id2Windows[data2.ID].Canvas.RefreshNodeParam(data2.Root);
                SetNodeShowValue(data1.ID);
                SetNodeShowValue(data2.ID);
            }
        }
示例#3
0
        private void OnNodeClick(BeTreeNode node)
        {
            int             index = node.SrcTreeID;
            RunTimeNodeData data  = _datas[index];
            NodeParam       param = data.GetNodeParam(node.NodeID);

            _curOpenningCtrl.Canvas.ShowDetialPanel(param, data.GetParamOutput(param));
        }