public ControlElement(FieldElement field) { this.field = field; _getValue = new AutoControl.GetControlValue(this.GetValue); this.field.BindGetValue(_getValue); ToBuild(); }
public ControlElement(FieldElement field) { this.field = field; _getValue = new AutoControl.GetControlValue(this.GetValue); this.field.BindGetValue(_getValue); ToBuild(); }
public void BindGetValue(GetControlValue _getValue) { this._getValue = _getValue; }
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)); } }
public void BindGetValue(GetControlValue _getValue) { this._getValue = _getValue; }