* XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ControlBindingsCollection.cs
index 345a7d6df9976a029338cacce274576c2d0d333e..913744aacd60521178f62eed7ae3ad915fcbd8f7 100644 (file)
@@ -81,11 +81,11 @@ namespace System.Windows.Forms {
                        return res;
                }
 
-               public void Clear() {
+               public new void Clear() {
                        base.Clear();
                }
 
-               public void Remove(Binding binding) {
+               public new void Remove(Binding binding) {
                        if (binding == null) {
                                throw new NullReferenceException("The binding is null");
                        }
@@ -93,7 +93,7 @@ namespace System.Windows.Forms {
                        base.Remove(binding);
                }
 
-               public void RemoveAt(int index) {
+               public new void RemoveAt(int index) {
                        if (index < 0 || index >= base.List.Count) {
                                throw new ArgumentOutOfRangeException("index");
                        }
@@ -123,20 +123,21 @@ namespace System.Windows.Forms {
                        }
 
                        binding.SetControl (control);
+                       binding.Check (control.BindingContext);
                        base.AddCore (binding);
                }
 
-               protected override void ClearCore() {\r
-                       base.ClearCore ();\r
-               }\r
+               protected override void ClearCore() {
+                       base.ClearCore ();
+               }
 
-               protected override void RemoveCore(Binding dataBinding) {\r
+               protected override void RemoveCore(Binding dataBinding) {
                        if (dataBinding == null) {
                                throw new ArgumentNullException ("dataBinding");
                        }
 
-                       base.RemoveCore (dataBinding);\r
-               }\r
+                       base.RemoveCore (dataBinding);
+               }
                #endregion      // Protected Instance Methods
        }
 }