} //AddItem

        public TemplateItem AddTemplateItem(string name, string text,
                                            TemplateControlType controlType, TemplateItemType itemType,
                                            object content, string parentId)
        {
            TemplateItem item = new TemplateItem(name, text, controlType, itemType, content, parentId);

            Add(item);

            return(item);
        } //AddItem
        } //TemplateItem

        public TemplateItem(string name, string text,
                            TemplateControlType controlType, TemplateItemType itemType,
                            object content, string parentId)
        {
            Id          = Guid.NewGuid().ToString("N").ToUpperInvariant();
            IsChanged   = false;
            Name        = name;
            Text        = text;
            ParentId    = parentId;
            ControlType = controlType;
            ItemType    = itemType;
            Content     = content;
            IsEmpty     = false;
        } //TemplateItem
        } //GetEmptyItems

        public List <TemplateItem> GetEmptyItems(TemplateControlType controlType)
        {
            return(FindAll(p => ((p.IsEmpty) && (p.ControlType == controlType))));
        } //GetEmptyItems