Пример #1
0
        public ElementField AddField(string name, ElementFieldDataType fieldType, bool useFixedValue = true)
        {
            // TODO Validation - Same name?
            var sortOrder = Convert.ToByte(ElementFieldSet.Count + 1);
            var field     = new ElementField(this, name, fieldType, sortOrder, useFixedValue);

            ElementFieldSet.Add(field);
            return(field);
        }
Пример #2
0
        public ElementField AddField(string name, ElementFieldDataType fieldType, bool?useFixedValue = null)
        {
            var sortOrder = Convert.ToByte(ElementFieldSet.Count + 1);
            var field     = new ElementField(this, name, fieldType, sortOrder, useFixedValue);

            //return AddField(field);
            //}

            //ElementField AddField(ElementField field)
            //{
            // TODO Validation - Same name?

            ElementFieldSet.Add(field);

            return(field);
        }