Ejemplo n.º 1
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);
		}
Ejemplo n.º 2
0
		// finds linked fields and synchronises it with it's parent control
		internal void Synchronise(FieldControl ctrl)
		{
			int index = this.fields.FindIndex(delegate(Field f) { return f.Name == ctrl.Field.Name; });

			this.fields[index] = ctrl.Field;
		}