/// <summary> /// Create Field in Filter /// </summary> /// <param name="param">Parameters</param> /// <returns>The created field</returns> public BaseField CreateField_In_Filter(CreateField_In_Filter_Params param) { BooleanField booleanField = new BooleanField(); booleanField.StopAutoSizeConfig(); booleanField.Name = param.ConfigProperty.PropertyInfo.Name; booleanField.SizeLabel = param.SizeLabel; booleanField.SizeControl = param.SizeControl; booleanField.OrientationField = Orientation.Horizontal; booleanField.TabIndex = param.TabIndex; booleanField.Text_Label = param.ConfigProperty.DisplayProperty.Title; booleanField.ConfigSizeField(); param.FilterContainer.Controls.Add(booleanField); return(booleanField); }
/// <summary> /// Step1 : CreateField in EntryForm /// </summary> /// <param name="param"> /// </param> /// <returns>the created field</returns> public BaseField CreateField_In_EntryForm(CreateFieldParams param) { BooleanField booleanField = new BooleanField(); booleanField.StopAutoSizeConfig(); booleanField.Name = param.PropertyInfo.Name; booleanField.Location = param.Location; booleanField.OrientationField = param.OrientationField; booleanField.SizeLabel = param.SizeLabel; booleanField.SizeControl = param.SizeControl; booleanField.TabIndex = param.TabIndex; booleanField.Text_Label = param.ConfigProperty.DisplayProperty.Title; booleanField.ConfigSizeField(); // Type of Property booleanField.PropertyInfo = param.ConfigProperty.PropertyInfo; // Insertion à l'interface param.ConteneurFormulaire.Controls.Add(booleanField); return(booleanField); }