Ejemplo n.º 1
0
 public ControlElement(FieldElement field)
 {
     this.field = field;
     _getValue  = new AutoControl.GetControlValue(this.GetValue);
     this.field.BindGetValue(_getValue);
     ToBuild();
 }
Ejemplo n.º 2
0
 public ControlElement(FieldElement field)
 {
     this.field = field;
     _getValue = new AutoControl.GetControlValue(this.GetValue);
     this.field.BindGetValue(_getValue);
     ToBuild();
 }
Ejemplo n.º 3
0
 public void BindGetValue(GetControlValue _getValue)
 {
     this._getValue = _getValue;
 }
Ejemplo n.º 4
0
 public static TValue GetControlProperty <TControl, TValue>(this TControl control, GetControlValue <TControl, TValue> getOperation)
     where TControl : Control
 {
     if (control.InvokeRequired)
     {
         return((TValue)control.Invoke(new GetControlProperty <TControl, TValue>(GetControlProperty), new object[] { control, getOperation }));
     }
     else
     {
         return(getOperation(control));
     }
 }
Ejemplo n.º 5
0
 public void BindGetValue(GetControlValue _getValue)
 {
     this._getValue = _getValue;
 }