Binda.DefaultBindaStrategy.SetControlValue C# (CSharp) Method

SetControlValue() public method

public SetControlValue ( Control control, object source, string propertyName ) : void
control System.Windows.Forms.Control
source object
propertyName string
return void
        public override void SetControlValue(Control control, object source, string propertyName)
        {
            var sourceProperty = source.GetType().GetProperty(propertyName);
            if (sourceProperty == null) return;
            var value = sourceProperty.GetValue(source, null);
            control.SetPropertyValue(ControlPropertyName, value);
        }