2007-04-17 Everaldo Canuto <everaldo@simios.org>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ControlBindingsCollection.cs
index 162730e651b5095eb00c35c91ef3e1e728ee6c42..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,6 +123,7 @@ namespace System.Windows.Forms {
                        }
 
                        binding.SetControl (control);
+                       binding.Check (control.BindingContext);
                        base.AddCore (binding);
                }