/// <summary> /// Creates new group row and assigns default values: GroupID, StationID, Name /// </summary> /// <param name="pPrefix">prefix for new group names that are created</param> /// <param name="stationID">Station id</param> /// <returns>New <see cref="GroupsRow"/></returns> public GroupsRow NewGroupsRow(long stationID, string pPrefix) { GroupsRow gr = NewGroupsRow(); gr.StationID = stationID; gr.Name = string.Format("{1}{2}Group{0}", gr.GroupID, pPrefix, m_IdentSep); return(gr); }
/// <summary> /// Creates new group row and assigns default values: GroupID, StationID, Name /// </summary> /// <param name="stationID"> id of station that this grop belongs to</param> /// <param name="pRowToBeCopied">copy of the group to be copied</param> /// <param name="pShallowCopy">indicate if the copy is deep or shalow</param> /// <param name="pPrefix">prefix for the station</param> public void NewGroupsRow(long stationID, GroupsRow pRowToBeCopied, bool pShallowCopy, string pPrefix) { GroupsRow dr = NewGroupsRow(stationID, pPrefix); dr.TimeScan = pRowToBeCopied.TimeScan; dr.TimeOut = pRowToBeCopied.TimeOut; dr.TimeScanFast = pRowToBeCopied.TimeScanFast; dr.TimeOutFast = pRowToBeCopied.TimeOutFast; AddGroupsRow(dr); if (!pShallowCopy) { foreach (DataBlocksRow br in pRowToBeCopied.GetDataBlocksRows()) { ((ComunicationNet)DataSet).DataBlocks.NewDataBlocksRow(dr.GroupID, br, false, dr.Name); } } return; }