Beispiel #1
0
        public bool AddItem(ContentBlockSettingListItem item)
        {
            var maxSort = FindMaxSort(item.ListName);

            item.SortOrder = maxSort + 1;
            Items.Add(item);
            return(true);
        }
        public ContentBlockSettingListItem Clone()
        {
            var clone = new ContentBlockSettingListItem();

            //clone.Id = Guid.NewGuid().ToString();
            clone.ListName  = ListName;
            clone.Setting1  = Setting1;
            clone.Setting2  = Setting2;
            clone.Setting3  = Setting3;
            clone.Setting4  = Setting4;
            clone.Setting5  = Setting5;
            clone.Setting6  = Setting6;
            clone.Setting7  = Setting7;
            clone.Setting8  = Setting8;
            clone.Setting9  = Setting9;
            clone.Setting10 = Setting10;
            clone.SortOrder = SortOrder;

            return(clone);
        }