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