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)); }
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); }
public override object CloneData() { return(_data.Clone()); }