2002-10-25 Tim Coleman (tim@timcoleman.com)
[mono.git] / mcs / class / System.Data / System.Data / DataViewManager.cs
1 //
2 // System.Data.DataViewManager
3 //
4 // Author:
5 //   Rodrigo Moya (rodrigo@ximian.com)
6 //
7 // (C) Ximian, Inc. 2002
8 //
9
10 using System.Collections;
11 using System.ComponentModel;
12
13 namespace System.Data
14 {
15         /// <summary>
16         /// Contains a default DataViewSettingCollection for each DataTable in a DataSet.
17         /// </summary>
18         public class DataViewManager : MarshalByValueComponent
19         // IBindingList, ICollection, IList, ITypedList, IEnumerable
20         {
21                 private DataSet dataSet;
22
23                 public DataViewManager () {
24                         dataSet = null;
25                 }
26
27                 public DataViewManager (DataSet ds) {
28                         dataSet = ds;
29                 }
30
31                 [MonoTODO]
32                 public DataView CreateDataView (DataTable table) {
33                         return new DataView (table);
34                 }
35
36                 protected virtual void OnListChanged (ListChangedEventArgs e) {
37                 }
38
39                 protected virtual void RelationCollectionChanged (
40                         object sender,
41                         CollectionChangeEventArgs e) {
42                 }
43
44                 protected virtual void TableCollectionChanged (object sender,
45                                                                CollectionChangeEventArgs e) {
46                 }
47
48                 public DataSet DataSet {
49                         get {
50                                 return dataSet;
51                         }
52                         set {
53                                 dataSet = value;
54                         }
55                 }
56
57                 [MonoTODO]
58                 public string DataViewSettingCollectionString {
59                         get {
60                                 throw new NotImplementedException ();
61                         }
62                         set {
63                                 throw new NotImplementedException ();
64                         }
65                 }
66
67                 [MonoTODO]
68                 public DataViewSettingCollection DataViewSettings {
69                         get {
70                                 throw new NotImplementedException ();
71                         }
72                 }
73
74                 public event ListChangedEventHandler ListChanged;
75         }
76 }