public CremaTemplate(CremaDataTable targetTable) { if (targetTable == null) { throw new ArgumentNullException(nameof(targetTable)); } if (targetTable.TemplateNamespace != string.Empty) { throw new ArgumentException(Resources.Exception_CannotEditInheritedTable, nameof(targetTable)); } this.builder = new CremaTemplateColumnBuilder(this); this.template = new InternalTemplate(this, this.builder) { TargetTable = (InternalDataTable)targetTable }; this.attributes = new CremaAttributeCollection(this.template); this.columns = new CremaTemplateColumnCollection(this.template); this.AttachEventHandlers(); }
internal CremaTemplateColumnCollection(InternalTemplate template) { this.template = template; this.rows = template.Rows; this.itemList = template.RowList; }