Beispiel #1
0
        private int UpdateNode(cm_node_rpc node, bool isNew)
        {
            var data = node.Clone() as cm_node_rpc;

            if (data.parent != null)
            {
                data.parent          = data.parent.Clone() as cm_node_rpc;
                data.parent.children = null;
                data.parent.parent   = null;
            }
            data.children = null;
            return(isNew ? m_Main.Client.add_cm_node(data) : m_Main.Client.update_cm_node(data));
        }
Beispiel #2
0
        private int UpdateNode(cm_node_rpc node, bool isNew)
        {
            var data = node.Clone() as cm_node_rpc;

            if (data.parent != null)
            {
                data.parent = data.parent.Clone() as cm_node_rpc;
                data.parent.children = null;
                data.parent.parent = null;
            }
            data.children = null;
            return isNew ? m_Main.Client.add_cm_node(data) : m_Main.Client.update_cm_node(data);
        }
Beispiel #3
0
 public override object CloneData()
 {
     return(_data.Clone());
 }