Пример #1
0
 public ControlElement(FieldElement field)
 {
     this.field = field;
     _getValue  = new AutoControl.GetControlValue(this.GetValue);
     this.field.BindGetValue(_getValue);
     ToBuild();
 }
Пример #2
0
 public ControlElement(FieldElement field)
 {
     this.field = field;
     _getValue = new AutoControl.GetControlValue(this.GetValue);
     this.field.BindGetValue(_getValue);
     ToBuild();
 }
Пример #3
0
 public void BindGetValue(GetControlValue _getValue)
 {
     this._getValue = _getValue;
 }
Пример #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));
     }
 }
Пример #5
0
 public void BindGetValue(GetControlValue _getValue)
 {
     this._getValue = _getValue;
 }