2 // System.Windows.Forms.BindingContext.cs
5 // stubbed out by Jaak Simm (jaaksimm@firm.ee)
6 // Dennis hayes (dennish@raytek.com)
8 // (C) 2002/3 Ximian, Inc
12 // Permission is hereby granted, free of charge, to any person obtaining
13 // a copy of this software and associated documentation files (the
14 // "Software"), to deal in the Software without restriction, including
15 // without limitation the rights to use, copy, modify, merge, publish,
16 // distribute, sublicense, and/or sell copies of the Software, and to
17 // permit persons to whom the Software is furnished to do so, subject to
18 // the following conditions:
20 // The above copyright notice and this permission notice shall be
21 // included in all copies or substantial portions of the Software.
23 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
27 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
28 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
29 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 using System
.ComponentModel
;
32 namespace System
.Windows
.Forms
{
34 public class BindingContext
{
37 /// Manages the collection of BindingManagerBase objects for any object that inherits from the Control class.
43 public BindingContext ()
49 // --- Public Properties
50 // Following properties not stubbed out, because they are only supporting internal .NET Framework infrastructure.
52 public bool IsReadOnly
{
54 throw new NotImplementedException ();
59 public BindingManagerBase
this[object dataSource
] {
61 get { throw new NotImplementedException (); }
65 public BindingManagerBase
this[object dataSource
,string dataMember
] {
67 get { throw new NotImplementedException (); }
72 // Following methods not stubbed out, because they are only supporting internal .NET Framework infrastructure.
74 protected virtual void AddCore(object dataSource
,BindingManagerBase listManager
){
78 protected virtual void ClearCore(){
81 // - void ICollection.CopyTo(Array ar,int index)
82 // - IEnumerator IEnumerable.GetEnumerator()
85 protected virtual void OnCollectionChanged(CollectionChangeEventArgs ccevent
){
89 protected virtual void RemoveCore(object dataSource
){
93 protected internal void Add(object dataSource
, BindingManagerBase listManager
)
95 throw new NotImplementedException ();
99 protected internal void Clear()
105 public bool Contains(object dataSource
)
107 throw new NotImplementedException ();
111 public bool Contains(object dataSource
,string dataMember
)
113 throw new NotImplementedException ();
117 protected internal void Remove(object dataSource
)
124 // Following events not stubbed out, because they are only supporting internal .NET Framework infrastructure
125 public event CollectionChangeEventHandler CollectionChanged
;