Binda.Binder.Bind C# (CSharp) Method

Bind() public method

Binds a Form to an object via property names including optional aliases.
public Bind ( Form source, object destination, IList aliases = null ) : void
source System.Windows.Forms.Form A Windows Form.
destination object Any POCO.
aliases IList A list of BindaAlias (optional).
return void
        public void Bind(Form source, object destination, IList<BindaAlias> aliases = null)
        {
            InternalBindToObject(source, destination, aliases);
        }

Same methods

Binder::Bind ( Panel source, object destination, IList aliases = null ) : void
Binder::Bind ( UserControl source, object destination, IList aliases = null ) : void
Binder::Bind ( object source, Form destination, IList aliases = null ) : void
Binder::Bind ( object source, Panel destination, IList aliases = null ) : void
Binder::Bind ( object source, UserControl destination, IList aliases = null ) : void

Usage Example

Esempio n. 1
1
        public void When_binding_a_form_to_an_object_where_the_object_is_null()
        {
            var binder = new Binder();
            var form = NeededObjectsFactory.CreateForm();

            Assert.Throws<ArgumentNullException>(() => binder.Bind(form, (Post)null));
        }
All Usage Examples Of Binda.Binder::Bind