/// <summary> /// Binds <see cref="TextBox.Text"/> of <paramref name="textBox"/> to <paramref name="member"/> /// </summary> /// <param name="textBox"></param> /// <param name="member"></param> /// <returns></returns> public Bind <TBinding> For(TextBox textBox, Expression <Func <TBinding, string> > member) { textBox.AddBinding(_item, ReflectionUtils.GetPropertyName(member)); return(this); }
/// <summary> /// Binds <see cref="TextBox.Text"/> of <paramref name="textBox"/> to <paramref name="memberName"/> /// </summary> /// <param name="textBox"></param> /// <param name="memberName"></param> /// <returns></returns> public Bind <TBinding> For(TextBox textBox, string memberName) { textBox.AddBinding(_item, memberName); return(this); }