* BindingSource.cs: When adding a new item try to delegate to the internal
list first before throwing an exception.
svn path=/trunk/mcs/; revision=122897
{
if (!AllowEdit)
throw new InvalidOperationException ("Item cannot be added to a read-only or fixed-size list.");
- if (!AllowNew || (!item_has_default_ctor && !IsAddingNewHandled))
- throw new InvalidOperationException ("AddNew cannot be called on '" + item_type.Name +
- ", since it does not have a public default ctor. Set AllowNew to true " +
- ", handling AddingNew and creating the appropriate object.");
+ if (!AllowNew)
+ throw new InvalidOperationException ("AddNew is set to false.");
EndEdit ();
+2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
+
+ * BindingSource.cs: When adding a new item try to delegate to the internal
+ list first before throwing an exception.
+
2009-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ComboBox.cs: When setting the text and adjusting the top_item, do it