예제 #1
0
		public FieldControl(SPFieldInfo fieldInfo, string url)
		{
			this.fieldInfo = fieldInfo;
			this.url = url;

			InitializeComponent();
			InitializeFieldItem();
			
			this.originalForeClr = this.itemCtrl.GetForeColour();
			SetTitleText(this.fieldInfo.DisplayName);
			UpdateRequiredLabel();
		}
예제 #2
0
		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);
		}