2008-03-06 Jonathan Pobst <monkey@jpobst.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / BindingContext.cs
index 32975c808b214da2868069852b3e4fa91324fce2..cc09f64d346882f5dd9dc7638ddc4b983517da90 100644 (file)
@@ -75,20 +75,20 @@ namespace System.Windows.Forms {
                        get { return this [dataSource, String.Empty]; }
                }
 
-               public BindingManagerBase this [object data_source, string data_member] {
+               public BindingManagerBase this [object dataSource, string dataMember] {
                        get {
-                               if (data_source == null)
-                                       throw new ArgumentNullException ("data_source");
-                               if (data_member == null)
-                                       data_member = String.Empty;
+                               if (dataSource == null)
+                                       throw new ArgumentNullException ("dataSource");
+                               if (dataMember == null)
+                                       dataMember = String.Empty;
 
-                               HashKey key = new HashKey (data_source, data_member);
+                               HashKey key = new HashKey (dataSource, dataMember);
                                BindingManagerBase res = managers [key] as BindingManagerBase;
 
                                if (res != null)
                                        return res;
 
-                               res = CreateBindingManager (data_source, data_member);
+                               res = CreateBindingManager (dataSource, dataMember);
                                if (res == null)
                                        return null;
                                managers [key] = res;
@@ -204,6 +204,10 @@ namespace System.Windows.Forms {
                #endregion      // Protected Instance Methods
 
                #region Events
+#if NET_2_0
+               [Browsable (false)]
+               [EditorBrowsable (EditorBrowsableState.Never)]
+#endif
                public event CollectionChangeEventHandler CollectionChanged {
                        add { throw new NotImplementedException (); }
                        remove { /* nothing to do here.. */ }