* Binding.cs: Call UpdateIsBinding when setting control - probably
Binding is already usable and we don't need to wait to check the
IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
Created, just like 2.0 does.
* CurrencyManager.cs: I'm so lame - the previous check was wrong.
svn path=/trunk/mcs/; revision=100522
prop_changed_event.AddEventHandler (control, new EventHandler (ControlPropertyChangedHandler));
#endif
this.control = control;
+ UpdateIsBinding ();
}
internal void Check ()
#if NET_2_0
if (control == null || (control is Control && !((Control)control).IsHandleCreated))
#else
- if (control == null && !control.Created)
+ if (control == null && !control.IsHandleCreated)
#endif
return;
+2009-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+ * Binding.cs: Call UpdateIsBinding when setting control - probably
+ Binding is already usable and we don't need to wait to check the
+ IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
+ Created, just like 2.0 does.
+ * CurrencyManager.cs: I'm so lame - the previous check was wrong.
+
2009-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Binding.cs: Just realized we don't need to have a handler for
internal override bool IsSuspended {
get {
// Always return true if we don't have items
- return Count > 0 && binding_suspended;
+ if (Count == 0)
+ return true;
+
+ return binding_suspended;
}
}