57 references to Add
System.Data (14)
fx\src\data\System\Data\ConstraintCollection.cs (1)
137
OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.
Add
, constraint));
fx\src\data\System\Data\DataColumnCollection.cs (3)
149
OnCollectionChanging(new CollectionChangeEventArgs(CollectionChangeAction.
Add
, column));
159
OnCollectionChanging(new CollectionChangeEventArgs(CollectionChangeAction.
Add
, column));
172
OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.
Add
, column));
fx\src\data\System\Data\DataRelationCollection.cs (2)
72
OnCollectionChanging(new CollectionChangeEventArgs(CollectionChangeAction.
Add
, relation));
74
OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.
Add
, relation));
fx\src\data\System\Data\DataTableCollection.cs (2)
149
OnCollectionChanging(new CollectionChangeEventArgs(CollectionChangeAction.
Add
, table));
157
OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.
Add
, table));
fx\src\data\System\Data\DataView.cs (3)
1636
e.Action == CollectionChangeAction.
Add
? new ListChangedEventArgs(ListChangedType.PropertyDescriptorAdded, new DataRelationPropertyDescriptor((System.Data.DataRelation)e.Element)) :
1646
e.Action == CollectionChangeAction.
Add
? new ListChangedEventArgs(ListChangedType.PropertyDescriptorAdded, new DataRelationPropertyDescriptor((System.Data.DataRelation)e.Element)) :
1656
e.Action == CollectionChangeAction.
Add
? new ListChangedEventArgs(ListChangedType.PropertyDescriptorAdded, new DataColumnPropertyDescriptor((System.Data.DataColumn)e.Element)) :
fx\src\data\System\Data\DataViewManager.cs (2)
366
e.Action == CollectionChangeAction.
Add
? new ListChangedEventArgs(ListChangedType.PropertyDescriptorAdded, new DataTablePropertyDescriptor((System.Data.DataTable)e.Element)) :
376
e.Action == CollectionChangeAction.
Add
? new ListChangedEventArgs(ListChangedType.PropertyDescriptorAdded, new DataRelationPropertyDescriptor((System.Data.DataRelation)e.Element)) :
fx\src\data\System\NewXml\XmlDataDocument.cs (1)
1989
Debug.Assert( ! (args.Action == CollectionChangeAction.
Add
|| args.Action == CollectionChangeAction.Remove) || rel.Nested == false );
System.Data.Entity (12)
System\Data\Objects\DataClasses\EntityCollection.cs (1)
341
OnAssociationChanged(CollectionChangeAction.
Add
, wrappedEntity.Entity);
System\Data\Objects\DataClasses\RelatedEnd.cs (2)
1353
targetRelatedEnd.OnAssociationChanged(CollectionChangeAction.
Add
, _wrappedOwner.Entity);
1354
OnAssociationChanged(CollectionChangeAction.
Add
, wrappedTarget.Entity);
System\Data\Objects\EntityEntry.cs (5)
2227
otherRelatedEnd.OnAssociationChanged(CollectionChangeAction.
Add
, _wrappedEntity.Entity);
2241
relatedEnd.OnAssociationChanged(CollectionChangeAction.
Add
, relatedWrapper.Entity);
3191
_cache.OnObjectStateManagerChanged(CollectionChangeAction.
Add
, Entity);
3206
_cache.OnObjectStateManagerChanged(CollectionChangeAction.
Add
, Entity);
3219
_cache.OnObjectStateManagerChanged(CollectionChangeAction.
Add
, Entity);
System\Data\Objects\ObjectStateManager.cs (3)
442
OnObjectStateManagerChanged(CollectionChangeAction.
Add
, newEntry.Entity);
674
OnObjectStateManagerChanged(CollectionChangeAction.
Add
, keyEntry.Entity);
1442
OnObjectStateManagerChanged(CollectionChangeAction.
Add
, newEntry.Entity);
System\Data\Objects\ObjectViewEntityCollectionData.cs (1)
207
case CollectionChangeAction.
Add
:
System.Windows.Forms (31)
winforms\Managed\System\WinForms\AutoCompleteStringCollection.cs (3)
40
OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.
Add
, value));
110
OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.
Add
, value));
171
OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.
Add
, value));
winforms\Managed\System\WinForms\BindingContext.cs (1)
151
OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.
Add
, dataSource));
winforms\Managed\System\WinForms\BindingMAnagerBase.cs (1)
420
case CollectionChangeAction.
Add
:
winforms\Managed\System\WinForms\BindingsCollection.cs (1)
68
CollectionChangeEventArgs ccevent = new CollectionChangeEventArgs(CollectionChangeAction.
Add
, binding);
winforms\Managed\System\WinForms\DataGrid.cs (1)
3280
if (ccea.Action == CollectionChangeAction.
Add
) {
winforms\Managed\System\WinForms\DataGridColumnCollection.cs (1)
295
OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.
Add
, column));
winforms\Managed\System\WinForms\DataGridTable.cs (1)
1675
if (e.Action == CollectionChangeAction.
Add
) {
winforms\Managed\System\WinForms\DataGridTableCollection.cs (1)
201
OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.
Add
, table));
winforms\Managed\System\WinForms\DataGridViewCellCollection.cs (3)
290
OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.
Add
, dataGridViewCell));
399
OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.
Add
, dataGridViewCell));
412
OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.
Add
, dataGridViewCell));
winforms\Managed\System\WinForms\DataGridViewColumnCollection.cs (3)
299
OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.
Add
, dataGridViewColumn), false /*changeIsInsertion*/, new Point(-1, -1));
999
OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.
Add
, dataGridViewColumn), true /*changeIsInsertion*/, newCurrentCell);
1087
if (ccea.Action == CollectionChangeAction.
Add
&& changeIsInsertion)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (3)
13713
if (ccea.Action == CollectionChangeAction.
Add
)
17980
if ((cca == CollectionChangeAction.Refresh || cca == CollectionChangeAction.
Add
) &&
17991
case CollectionChangeAction.
Add
:
winforms\Managed\System\WinForms\DataGridViewRowCollection.cs (12)
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);
810
OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.
Add
, SharedRow(index)), index, 1);
1684
OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.
Add
, dataGridViewRow), rowIndex, 1, false, true, false, newCurrentCell);
1776
OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.
Add
, SharedRow(indexDestination)), indexDestination, count, false, true, false, newCurrentCell);
1829
OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.
Add
, SharedRow(indexDestination)), indexDestination, 1, false, true, false, newCurrentCell);
2046
if (dataGridViewRow != null && e.Action == CollectionChangeAction.
Add
)
2070
if (dataGridViewRow != null && e.Action == CollectionChangeAction.
Add
)
2095
case CollectionChangeAction.
Add
:
2229
case CollectionChangeAction.
Add
: