コード例 #1
0
 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);
 }
コード例 #2
0
ファイル: DataViewManager.cs プロジェクト: dox0/DotNet471RS3
 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);
 }
コード例 #3
0
 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();
     }
 }
コード例 #4
0
            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();
                }
            }
コード例 #5
0
            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();
                }
            }
コード例 #6
0
        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);
            }
        }
コード例 #7
0
ファイル: DataViewManager.cs プロジェクト: nlhepler/mono
		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);
			}
		}
コード例 #8
0
 private void SetDataSet(DataSet ds)
 {
     dataSet  = ds;
     settings = new DataViewSettingCollection(this);
     xml      = BuildSettingString();
 }
コード例 #9
0
 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();
     }
 }
コード例 #10
0
		private void SetDataSet (DataSet ds)
		{
			dataSet = ds;
			settings = new DataViewSettingCollection (this);
			xml = BuildSettingString ();
		}
 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();
     }
 }
コード例 #12
0
 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();
     }
 }