Ejemplo n.º 1
0
        public static PropertyBindingBuilder.SourceBinding <T> Property <T> (this BindingList list, IPropertyBinding binding)
        {
            var builder = PropertyBindingBuilder.Create <T> (binding);

            list.Add(builder.Binding);
            return(builder);
        }
Ejemplo n.º 2
0
        public static PropertyBindingBuilder.SourceBinding <T> Property <OwnerT, T> (this BindingList list, OwnerT source, Expression <Func <OwnerT, T> > property)
            where OwnerT : INotifyPropertyChanged
        {
            var builder = PropertyBindingBuilder.Create(source, property);

            list.Add(builder.Binding);
            return(builder);
        }