public void Int32Filed_Horizontal_Virtical_FieldChanged_Test() { Size SizeLabel = new Size(100, 20); Size SizeControl = new Size(100, 20); Int32Filed int32Filed_Horizontal = new Int32Filed(); int32Filed_Horizontal.SizeLabel = SizeLabel; int32Filed_Horizontal.SizeControl = SizeControl; int32Filed_Horizontal.OrientationField = Orientation.Horizontal; int32Filed_Horizontal.ValueChanged += Int32Filed_FieldChanged; int32Filed_Horizontal.Value = 5; Int32Filed int32Filed_Vertical = new Int32Filed(); int32Filed_Horizontal.StopAutoSizeConfig(); int32Filed_Horizontal.SizeLabel = SizeLabel; int32Filed_Horizontal.SizeControl = SizeControl; int32Filed_Horizontal.OrientationField = Orientation.Vertical; int32Filed_Horizontal.ConfigSizeField(); int32Filed_Vertical.ValueChanged += Int32Filed_FieldChanged; int32Filed_Vertical.Value = 5; Assert.AreEqual(int32Filed_Vertical.Value, 5); Assert.AreEqual(int32Filed_Horizontal.Value, 5); Assert.AreEqual(ValueAfterEvent, 10); }
public BaseField CreateField_In_Filter(CreateField_In_Filter_Params param) { Int32Filed int32Filed = new Int32Filed(); int32Filed.StopAutoSizeConfig(); int32Filed.Name = param.ConfigProperty.PropertyInfo.Name; int32Filed.SizeLabel = param.SizeLabel; int32Filed.SizeControl = param.SizeControl; int32Filed.OrientationField = Orientation.Horizontal; int32Filed.TabIndex = param.TabIndex; int32Filed.Text_Label = param.ConfigProperty.DisplayProperty.Titre; int32Filed.ConfigSizeField(); param.FilterContainer.Controls.Add(int32Filed); return(int32Filed); }
/// <summary> /// CreateField in EntryForm /// /// </summary> /// <param name="param"> /// param.PropertyInfo /// param.Location /// param.OrientationField /// param.SizeLabel /// param.SizeControl /// param.ConfigProperty /// param.TabIndex /// param.Service /// param.ConfigEntity /// param.TabControlForm /// param.Entity /// param.ConteneurFormulaire /// </param> /// <returns>the created field</returns> public BaseField CreateField_In_EntryForm(CreateFieldParams param) { Int32Filed int32Filed = new Int32Filed(); int32Filed.StopAutoSizeConfig(); int32Filed.Name = param.PropertyInfo.Name; int32Filed.Location = param.Location; int32Filed.OrientationField = param.OrientationField; int32Filed.SizeLabel = param.SizeLabel; int32Filed.SizeControl = param.SizeControl; int32Filed.TabIndex = param.TabIndex; int32Filed.Text_Label = param.ConfigProperty.DisplayProperty.Titre; int32Filed.ConfigSizeField(); // Insertion à l'interface param.ConteneurFormulaire.Controls.Add(int32Filed); return(int32Filed); }