コード例 #1
0
            /// <summary>
            /// Creates new tag bit row and assigns default values
            /// </summary>
            /// <param name="cParent">Parent Tag <see cref="TagsRow"/></param>
            /// <param name="pRowToBeCopied">New row is a shallow copy of the current rowToPaste</param>
            /// <returns>New <see cref="TagBitRow"/></returns>
            public void NewTagBitRow(TagsRow cParent, TagBitRow pRowToBeCopied)
            {
                TagBitRow dr = NewTagBitRow();

                dr.Name      = pRowToBeCopied.Name;
                dr.BitNumber = pRowToBeCopied.BitNumber;
                dr.TagID     = cParent.TagID;
                AddTagBitRow(dr);
                return;
            }
コード例 #2
0
            /// <summary>
            /// Creates new tag bit row and assigns default values
            /// </summary>
            /// <param name="cParent">Parent Tag <see cref="TagsRow"/></param>
            /// <param name="pPrefix">prefix for new tag-bit names that are created</param>
            /// <returns>New <see cref="TagBitRow"/></returns>
            public TagBitRow NewTagBitRow(TagsRow cParent, string pPrefix)
            {
                TagBitRow dr = NewTagBitRow();

                dr.TagID = cParent.TagID;
                short idx = (short)cParent.GetTagBitRows().Length;

                dr.Name      = string.Format("{0}{1}NewTagBit{2}", pPrefix, m_IdentSep, idx);
                dr.BitNumber = idx;
                return(dr);
            }