Пример #1
0
        public ElementCell AddCell(ElementField field)
        {
            Validations.ArgumentNullOrDefault(field, nameof(field));

            if (ElementCellSet.Any(item => item.ElementField == field))
            {
                throw new Exception("An element item can't have more than one cell for the same field.");
            }

            var cell = new ElementCell(field, this);

            field.ElementCellSet.Add(cell);
            ElementCellSet.Add(cell);
            return(cell);
        }
Пример #2
0
        public UserElementCell(ElementCell elementCell) : this()
        {
            Validations.ArgumentNullOrDefault(elementCell, nameof(elementCell));

            ElementCell = elementCell;
        }