/// <summary> /// Adds the history record for the specified node id and type. /// </summary> /// <param name="source">The source.</param> /// <param name="nodeId">The node identifier.</param> /// <param name="nodeType">Type of the node.</param> /// <param name="description">The description.</param> /// <param name="extraData">The extra data.</param> /// <returns>Returns a <see cref="IMMPxNodeHistory" /> representing the history records.</returns> public static IMMPxNodeHistory AddHistory(this IMMPxApplication source, int nodeId, int nodeType, string description, string extraData) { var list = source.GetHistory(nodeId, nodeType); source.AddHistory(list, nodeId, nodeType, description, extraData); return(list); }
/// <summary> /// Adds the history record for the specified node. /// </summary> /// <param name="source">The source.</param> /// <param name="node">The node.</param> /// <param name="description">The description.</param> /// <param name="extraData">The extra data.</param> /// <returns> /// Returns a <see cref="IMMPxNodeHistory" /> representing the history records. /// </returns> public static IMMPxNodeHistory AddHistory(this IMMPxApplication source, IMMPxNode node, string description, string extraData) { return(source.AddHistory(node.Id, node.NodeType, description, extraData)); }
/// <summary> /// Adds a new history record for the node using the /// specified <paramref name="description" /> and <paramref name="extraData" />. /// </summary> /// <param name="description">The description.</param> /// <param name="extraData">The extra data.</param> public void AddHistory(string description, string extraData) { _PxApp.AddHistory(this.History, this.Node.Id, this.Node.NodeType, description, extraData); }