82 instantiations of CollectionChangeEventArgs
System.Data (23)
fx\src\data\System\Data\BaseCollection.cs (1)
20
internal static CollectionChangeEventArgs RefreshEventArgs = new
CollectionChangeEventArgs
(CollectionChangeAction.Refresh, null);
fx\src\data\System\Data\ConstraintCollection.cs (2)
137
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Add, constraint));
630
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Remove, constraint));
fx\src\data\System\Data\DataColumn.cs (2)
412
table.Columns.OnColumnPropertyChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Refresh, this));
420
table.Columns.OnColumnPropertyChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Refresh, this));
fx\src\data\System\Data\DataColumnCollection.cs (6)
149
OnCollectionChanging(new
CollectionChangeEventArgs
(CollectionChangeAction.Add, column));
159
OnCollectionChanging(new
CollectionChangeEventArgs
(CollectionChangeAction.Add, column));
172
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Add, column));
709
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Refresh, column));
790
OnCollectionChanging(new
CollectionChangeEventArgs
(CollectionChangeAction.Remove, column));
793
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Remove, column));
fx\src\data\System\Data\DataRelation.cs (4)
390
((DataRelationCollection.DataTableRelationCollection)(ParentTable.ChildRelations)).OnRelationPropertyChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Refresh, this));
391
((DataRelationCollection.DataTableRelationCollection)(ChildTable.ParentRelations)).OnRelationPropertyChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Refresh, this));
395
((DataRelationCollection.DataTableRelationCollection)(ParentTable.ChildRelations)).OnRelationPropertyChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Refresh, this));
396
((DataRelationCollection.DataTableRelationCollection)(ChildTable.ParentRelations)).OnRelationPropertyChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Refresh, this));
fx\src\data\System\Data\DataRelationCollection.cs (4)
72
OnCollectionChanging(new
CollectionChangeEventArgs
(CollectionChangeAction.Add, relation));
74
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Add, relation));
412
OnCollectionChanging(new
CollectionChangeEventArgs
(CollectionChangeAction.Remove, relation));
414
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Remove, relation));
fx\src\data\System\Data\DataTableCollection.cs (4)
149
OnCollectionChanging(new
CollectionChangeEventArgs
(CollectionChangeAction.Add, table));
157
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Add, table));
692
OnCollectionChanging(new
CollectionChangeEventArgs
(CollectionChangeAction.Remove, table));
694
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Remove, table));
System.Data.Entity (5)
System\Data\Objects\DataClasses\EntityCollection.cs (2)
170
_onAssociationChangedforObjectView(this, (new
CollectionChangeEventArgs
(collectionChangeAction, entity)));
174
_onAssociationChanged(this, (new
CollectionChangeEventArgs
(collectionChangeAction, entity)));
System\Data\Objects\DataClasses\RelatedEnd.cs (1)
2098
_onAssociationChanged(this, (new
CollectionChangeEventArgs
(collectionChangeAction, entity)));
System\Data\Objects\ObjectStateManager.cs (2)
256
onObjectStateManagerChangedDelegate(this, new
CollectionChangeEventArgs
(action, entity));
265
onEntityDeletedDelegate(this, new
CollectionChangeEventArgs
(action, entity));
System.Windows.Forms (54)
winforms\Managed\System\WinForms\AutoCompleteStringCollection.cs (8)
38
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Remove, data[index]));
40
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Add, value));
110
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Add, value));
123
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Refresh, null));
133
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Refresh, null));
171
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Add, value));
203
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Remove, value));
213
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Remove, value));
winforms\Managed\System\WinForms\BindingContext.cs (3)
151
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Add, dataSource));
195
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Refresh, null));
297
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Remove, dataSource));
winforms\Managed\System\WinForms\BindingsCollection.cs (3)
68
CollectionChangeEventArgs ccevent = new
CollectionChangeEventArgs
(CollectionChangeAction.Add, binding);
125
CollectionChangeEventArgs ccevent = new
CollectionChangeEventArgs
(CollectionChangeAction.Refresh, null);
170
CollectionChangeEventArgs ccevent = new
CollectionChangeEventArgs
(CollectionChangeAction.Remove, binding);
winforms\Managed\System\WinForms\DataGridColumnCollection.cs (5)
265
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Refresh, null));
269
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Refresh, (DataGridColumnStyle) sender));
295
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Add, column));
353
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Refresh, null));
562
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Remove, toRemove));
winforms\Managed\System\WinForms\DataGridTableCollection.cs (5)
201
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Add, table));
207
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Refresh, null));
223
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Refresh, null));
250
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Refresh, null));
342
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Remove, element));
winforms\Managed\System\WinForms\DataGridViewCellCollection.cs (6)
290
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Add, dataGridViewCell));
341
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Refresh, null));
359
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Refresh, null));
399
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Add, dataGridViewCell));
412
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Add, dataGridViewCell));
484
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Remove, dataGridViewCell));
winforms\Managed\System\WinForms\DataGridViewColumnCollection.cs (5)
299
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Add, dataGridViewColumn), false /*changeIsInsertion*/, new Point(-1, -1));
391
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Refresh, null), false /*changeIsInsertion*/, new Point(-1, -1));
437
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Refresh, null), false /*changeIsInsertion*/, new Point(-1, -1));
999
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Add, dataGridViewColumn), true /*changeIsInsertion*/, newCurrentCell);
1196
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Remove, dataGridViewColumn), false /*changeIsInsertion*/, newCurrentCell);
winforms\Managed\System\WinForms\DataGridViewRowCollection.cs (19)
413
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Add, dataGridViewRow), index, 1);
619
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Add, dataGridViewRow), index, 1);
674
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Add, rowTemplate), index, 1);
684
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Add, SharedRow(index)), index, 1);
756
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Refresh, null), indexStart, count);
797
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Refresh, null), indexStart, count);
810
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Add, SharedRow(index)), index, 1);
926
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Refresh, null), indexStart, dataGridViewRows.Length);
974
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Refresh, null), 0, rowCount, true, false, recreateNewRow, new Point(-1, -1));
1684
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Add, dataGridViewRow), rowIndex, 1, false, true, false, newCurrentCell);
1760
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Refresh, null), indexDestination, count, false, true, false, newCurrentCell);
1776
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Add, SharedRow(indexDestination)), indexDestination, count, false, true, false, newCurrentCell);
1804
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Refresh, null), indexDestination, count, false, true, false, newCurrentCell);
1816
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Refresh, null), indexDestination, count, false, true, false, newCurrentCell);
1829
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Add, SharedRow(indexDestination)), indexDestination, 1, false, true, false, newCurrentCell);
1959
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Refresh, null), rowIndex, dataGridViewRows.Length, false, true, false, newCurrentCell);
2054
e = new
CollectionChangeEventArgs
(e.Action, dataGridViewRow);
2078
e = new
CollectionChangeEventArgs
(e.Action, dataGridViewRow);
2353
OnCollectionChanged(new
CollectionChangeEventArgs
(CollectionChangeAction.Remove, dataGridViewRow), index, 1, true, false, false, newCurrentCell);
58 references to CollectionChangeEventArgs
System (2)
compmod\system\componentmodel\CollectionChangeEventArgs.cs (1)
23
/// <para>Initializes a new instance of the <see cref='System.ComponentModel.
CollectionChangeEventArgs
'/> class.</para>
compmod\system\componentmodel\CollectionChangeEventHandler.cs (1)
19
public delegate void CollectionChangeEventHandler(object sender,
CollectionChangeEventArgs
e);
System.Data (24)
fx\src\data\System\Data\BaseCollection.cs (1)
20
internal static
CollectionChangeEventArgs
RefreshEventArgs = new CollectionChangeEventArgs(CollectionChangeAction.Refresh, null);
fx\src\data\System\Data\CodeGen\datacache.cs (1)
1378
schemaChanged.Parameters.Add(ParameterDecl(typeof(
CollectionChangeEventArgs
), "e"));
fx\src\data\System\Data\ConstraintCollection.cs (1)
586
private void OnCollectionChanged(
CollectionChangeEventArgs
ccevent) {
fx\src\data\System\Data\DataColumnCollection.cs (3)
717
private void OnCollectionChanged(
CollectionChangeEventArgs
ccevent) {
731
private void OnCollectionChanging(
CollectionChangeEventArgs
ccevent) {
737
internal void OnColumnPropertyChanged(
CollectionChangeEventArgs
ccevent) {
fx\src\data\System\Data\DataRelationCollection.cs (3)
347
protected virtual void OnCollectionChanged(
CollectionChangeEventArgs
ccevent) {
357
protected virtual void OnCollectionChanging(
CollectionChangeEventArgs
ccevent) {
546
internal void OnRelationPropertyChanged(
CollectionChangeEventArgs
ccevent) {
fx\src\data\System\Data\DataTableCollection.cs (2)
644
private void OnCollectionChanged(
CollectionChangeEventArgs
ccevent) {
654
private void OnCollectionChanging(
CollectionChangeEventArgs
ccevent) {
fx\src\data\System\Data\DataTableReaderListener.cs (1)
89
private void SchemaChanged(object sender,
CollectionChangeEventArgs
e) {
fx\src\data\System\Data\DataView.cs (4)
1633
internal void ChildRelationCollectionChanged(object sender,
CollectionChangeEventArgs
e) {
1643
internal void ParentRelationCollectionChanged(object sender,
CollectionChangeEventArgs
e) {
1653
protected virtual void ColumnCollectionChanged(object sender,
CollectionChangeEventArgs
e) {
1663
internal void ColumnCollectionChangedInternal(object sender,
CollectionChangeEventArgs
e) {
fx\src\data\System\Data\DataViewListener.cs (3)
30
private void ChildRelationCollectionChanged(object sender,
CollectionChangeEventArgs
e) {
40
private void ParentRelationCollectionChanged(object sender,
CollectionChangeEventArgs
e) {
50
private void ColumnCollectionChanged(object sender,
CollectionChangeEventArgs
e) {
fx\src\data\System\Data\DataViewManager.cs (2)
363
protected virtual void TableCollectionChanged(object sender,
CollectionChangeEventArgs
e) {
373
protected virtual void RelationCollectionChanged(object sender,
CollectionChangeEventArgs
e) {
fx\src\data\System\NewXml\XmlDataDocument.cs (3)
1963
private void OnTableColumnsChanging( object oColumnsCollection,
CollectionChangeEventArgs
args ) {
1971
private void OnDataSetTablesChanging( object oTablesCollection,
CollectionChangeEventArgs
args ) {
1979
private void OnDataSetRelationsChanging( object oRelationsCollection,
CollectionChangeEventArgs
args ) {
System.Data.Entity (6)
System\Data\Objects\IObjectView.cs (1)
17
void CollectionChanged(object sender,
CollectionChangeEventArgs
e);
System\Data\Objects\IObjectViewData.cs (1)
174
ListChangedEventArgs OnCollectionChanged(object sender,
CollectionChangeEventArgs
e, ObjectViewListener listener);
System\Data\Objects\ObjectView.cs (1)
507
void IObjectView.CollectionChanged(object sender,
CollectionChangeEventArgs
e)
System\Data\Objects\ObjectViewEntityCollectionData.cs (1)
182
public ListChangedEventArgs OnCollectionChanged(object sender,
CollectionChangeEventArgs
e, ObjectViewListener listener)
System\Data\Objects\ObjectViewListener.cs (1)
142
private void CollectionChanged(object sender,
CollectionChangeEventArgs
e)
System\Data\Objects\ObjectViewQueryResultData.cs (1)
218
public ListChangedEventArgs OnCollectionChanged(object sender,
CollectionChangeEventArgs
e, ObjectViewListener listener)
System.Windows.Forms (26)
winforms\Managed\System\WinForms\AutoCompleteStringCollection.cs (1)
94
protected void OnCollectionChanged(
CollectionChangeEventArgs
e)
winforms\Managed\System\WinForms\BindingContext.cs (1)
284
protected virtual void OnCollectionChanged(
CollectionChangeEventArgs
ccevent) {
winforms\Managed\System\WinForms\BindingMAnagerBase.cs (2)
416
private void OnBindingsCollectionChanged(object sender,
CollectionChangeEventArgs
e) {
434
private void OnBindingsCollectionChanging(object sender,
CollectionChangeEventArgs
e) {
winforms\Managed\System\WinForms\BindingsCollection.cs (5)
68
CollectionChangeEventArgs
ccevent = new CollectionChangeEventArgs(CollectionChangeAction.Add, binding);
125
CollectionChangeEventArgs
ccevent = new CollectionChangeEventArgs(CollectionChangeAction.Refresh, null);
149
protected virtual void OnCollectionChanging(
CollectionChangeEventArgs
e) {
161
protected virtual void OnCollectionChanged(
CollectionChangeEventArgs
ccevent) {
170
CollectionChangeEventArgs
ccevent = new CollectionChangeEventArgs(CollectionChangeAction.Remove, binding);
winforms\Managed\System\WinForms\ComboBox.cs (1)
2790
private void OnAutoCompleteCustomSourceChanged(object sender,
CollectionChangeEventArgs
e) {
winforms\Managed\System\WinForms\DataGrid.cs (2)
3273
private void TableStylesCollectionChanged(object sender,
CollectionChangeEventArgs
ccea) {
7096
internal void OnColumnCollectionChanged(object sender,
CollectionChangeEventArgs
e) {
winforms\Managed\System\WinForms\DataGridColumnCollection.cs (1)
513
protected void OnCollectionChanged(
CollectionChangeEventArgs
e) {
winforms\Managed\System\WinForms\DataGridTable.cs (1)
1669
private void OnColumnCollectionChanged(object sender,
CollectionChangeEventArgs
e) {
winforms\Managed\System\WinForms\DataGridTableCollection.cs (1)
295
protected void OnCollectionChanged(
CollectionChangeEventArgs
e) {
winforms\Managed\System\WinForms\DataGridViewCellCollection.cs (1)
419
protected void OnCollectionChanged(
CollectionChangeEventArgs
e)
winforms\Managed\System\WinForms\DataGridViewColumnCollection.cs (4)
1059
protected virtual void OnCollectionChanged(
CollectionChangeEventArgs
e)
1067
private void OnCollectionChanged(
CollectionChangeEventArgs
ccea, bool changeIsInsertion, Point newCurrentCell)
1077
private void OnCollectionChanged_PreNotification(
CollectionChangeEventArgs
ccea)
1083
private void OnCollectionChanged_PostNotification(
CollectionChangeEventArgs
ccea, bool changeIsInsertion, Point newCurrentCell)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (1)
13708
internal void OnColumnCollectionChanged_PreNotification(
CollectionChangeEventArgs
ccea)
winforms\Managed\System\WinForms\DataGridViewRowCollection.cs (3)
2030
protected virtual void OnCollectionChanged(
CollectionChangeEventArgs
e)
2038
private void OnCollectionChanged(
CollectionChangeEventArgs
e,
2060
private void OnCollectionChanged(
CollectionChangeEventArgs
e,
winforms\Managed\System\WinForms\ErrorProvider.cs (1)
447
private void ErrorManager_BindingsChanged(object sender,
CollectionChangeEventArgs
e) {
winforms\Managed\System\WinForms\TextBox.cs (1)
596
private void OnAutoCompleteCustomSourceChanged(object sender,
CollectionChangeEventArgs
e) {