internal DataViewManager(DataSet dataSet, bool locked) { GC.SuppressFinalize(this); this.dataSet = dataSet; if (this.dataSet != null) { this.dataSet.Tables.CollectionChanged += new CollectionChangeEventHandler(TableCollectionChanged); this.dataSet.Relations.CollectionChanged += new CollectionChangeEventHandler(RelationCollectionChanged); } this.locked = locked; this.item = new DataViewManagerListItemTypeDescriptor(this); this.dataViewSettingsCollection = new DataViewSettingCollection(this); }
public DataViewSettingsEnumerator(DataViewManager dvm) { if (dvm.DataSet != null) { this.dataViewSettings = dvm.DataViewSettings; this.tableEnumerator = dvm.DataSet.Tables.GetEnumerator(); } else { this.dataViewSettings = null; this.tableEnumerator = DataSet.zeroTables.GetEnumerator(); } }
public DataViewSettingsEnumerator(DataViewManager dvm) { DataSet ds = dvm.DataSet; if (ds != null) { _dataViewSettings = dvm.DataViewSettings; _tableEnumerator = dvm.DataSet.Tables.GetEnumerator(); } else { _dataViewSettings = null; _tableEnumerator = Array.Empty <DataTable>().GetEnumerator(); } }
public DataViewSettingsEnumerator(DataViewManager dvm) { DataSet ds = dvm.DataSet; if (ds != null) { dataViewSettings = dvm.DataViewSettings; tableEnumerator = dvm.DataSet.Tables.GetEnumerator(); } else { dataViewSettings = null; tableEnumerator = DataSet.zeroTables.GetEnumerator(); } }
private void SetDataSet(DataSet ds) { if (dataSet != null) { dataSet.Tables.CollectionChanged -= new CollectionChangeEventHandler(TableCollectionChanged); dataSet.Relations.CollectionChanged -= new CollectionChangeEventHandler(RelationCollectionChanged); } dataSet = ds; settings = new DataViewSettingCollection(this); xml = BuildSettingString(); if (dataSet != null) { dataSet.Tables.CollectionChanged += new CollectionChangeEventHandler(TableCollectionChanged); dataSet.Relations.CollectionChanged += new CollectionChangeEventHandler(RelationCollectionChanged); } }
private void SetDataSet (DataSet ds) { if (dataSet != null) { dataSet.Tables.CollectionChanged -= new CollectionChangeEventHandler (TableCollectionChanged); dataSet.Relations.CollectionChanged -= new CollectionChangeEventHandler (RelationCollectionChanged); } dataSet = ds; settings = new DataViewSettingCollection (this); xml = BuildSettingString (); if (dataSet != null) { dataSet.Tables.CollectionChanged += new CollectionChangeEventHandler (TableCollectionChanged); dataSet.Relations.CollectionChanged += new CollectionChangeEventHandler (RelationCollectionChanged); } }
private void SetDataSet(DataSet ds) { dataSet = ds; settings = new DataViewSettingCollection(this); xml = BuildSettingString(); }
public DataViewSettingsEnumerator(DataViewManager dvm) { DataSet ds = dvm.DataSet; if(ds != null) { dataViewSettings = dvm.DataViewSettings; tableEnumerator = dvm.DataSet.Tables.GetEnumerator(); }else { dataViewSettings = null; tableEnumerator = DataSet.zeroTables.GetEnumerator(); } }
private void SetDataSet (DataSet ds) { dataSet = ds; settings = new DataViewSettingCollection (this); xml = BuildSettingString (); }
public DataViewSettingsEnumerator(DataViewManager dvm) { DataSet ds = dvm.DataSet; if (ds != null) { _dataViewSettings = dvm.DataViewSettings; _tableEnumerator = dvm.DataSet.Tables.GetEnumerator(); } else { _dataViewSettings = null; _tableEnumerator = Array.Empty<DataTable>().GetEnumerator(); } }