DataDictionary.Generated.Specification.appendChapters C# (CSharp) Метод

appendChapters() публичный Метод

Part of the list interface for Chapters
public appendChapters ( Chapter el ) : void
el Chapter a Chapter to add to the collection in /// Chapters
Результат void
        public void appendChapters(Chapter el)
        {
            __setDirty(true);
              el.__setDirty(true);
              allChapters().Add(el);
              acceptor.connectSon (this, el);
            NotifyControllers(null);
        }

Same methods

Specification::appendChapters ( Lock aLock, Chapter el ) : void
Specification::appendChapters ( System coll ) : void
Specification::appendChapters ( System coll, Lock aLock ) : void

Usage Example

Пример #1
0
        /// <summary>
        ///     Creates an update of this chapter in the provided specification
        /// </summary>
        /// <param name="specification">The specification update</param>
        /// <returns></returns>
        public Chapter CreateChapterUpdate(Specification specification)
        {
            Chapter retVal = new Chapter();
            retVal.setId(getId());
            retVal.setUpdates(Guid);

            specification.appendChapters(retVal);
            ArrayList tmp = new ArrayList();
            foreach (Chapter chapter in EnclosingSpecification.Chapters)
            {
                if (chapter.UpdatedBy != null)
                {
                    tmp.Add(chapter.UpdatedBy);
                }
                if (chapter == this)
                {
                    tmp.Add(retVal);
                }
            }

            UpdatedBy.Add(retVal);

            return retVal;
        }