internal CCGroup(CCreator parent, ITisFieldGroupData group)
public CCGroup(CCreator parent, ITisFieldGroupData group) #endif : base(parent, group != null? group.Name:String.Empty, parent == null || !parent.CurrentProfile.IgnoreExceptions ? CCUtils.GetSpecialTags(group) : null, parent == null || !parent.CurrentProfile.IgnoreNamedUserTags ? CCUtils.GetNamedUserTags(group, false) : null, parent == null || !parent.CurrentProfile.IgnoreUserTags ? CCUtils.GetUserTags(group, true) : null) { try { if (fields == null) { fields = new List <CCField>(); } else { fields.Clear(); } if (tables == null) { tables = new List <CCTable>(); } else { tables.Clear(); } this.EflowOwner = group; this.ParentCollection = group.ParentCollection; this.ParentForm = group.ParentForm; this.NamedParent = group.ParentForm.Name; List <String> fieldNames = new List <String>(); foreach (ITisFieldData fld in group.LinkedFields) { if (fieldNames.Contains(fld.Name.ToUpper())) { continue; } if (this.ParentPage == null) { this.ParentPage = fld.ParentPage; } fields.Add(new CCField(this.ParentCreator, fld)); fieldNames.Add(fld.Name); } foreach (ITisFieldTableData fldTbl in group.LinkedFieldTables) { if (this.ParentPage == null) { this.ParentPage = fldTbl.ParentPage; } tables.Add(new CCTable(this.ParentCreator, fldTbl)); } } catch (Exception ex) { ILog.LogError(ex); } }
public CCGroup(ITisFieldGroupData group) : this(null, group) { }