Ejemplo n.º 1
0
 public Form1()
 {
     InitializeComponent();
     AsyncBindingHelper.AddBinding(lblValue, "Text", (INotifyPropertyChanged)dataSource, "Value");
 }
Ejemplo n.º 2
0
        public static Binding AddBinding(Control bindingControl, string propertyName, INotifyPropertyChanged bindingSource, string dataMember)
        {
            AsyncBindingHelper helper = new AsyncBindingHelper(bindingControl, bindingSource, dataMember);

            return(bindingControl.DataBindings.Add(propertyName, helper, "Value"));
        }