public FieldControl(SPFieldInfo fieldInfo, string url) { this.fieldInfo = fieldInfo; this.url = url; InitializeComponent(); InitializeFieldItem(); this.originalForeClr = this.itemCtrl.GetForeColour(); SetTitleText(this.fieldInfo.DisplayName); UpdateRequiredLabel(); }
internal void AddField(SPFieldInfo fieldInfo) { FieldControl fc = new FieldControl(fieldInfo, this.url); fc.Name = fieldInfo.Name; this.flowLayoutPanelFields.Controls.Add(fc); fc.Width = fc.Width; fc.Anchor = AnchorStyles.Left | AnchorStyles.Right; this.fields.Add(fc.Field); }