43 references to Action
System.Data (18)
fx\src\data\System\Data\DataView.cs (9)
1636e.Action == CollectionChangeAction.Add ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorAdded, new DataRelationPropertyDescriptor((System.Data.DataRelation)e.Element)) : 1637e.Action == CollectionChangeAction.Refresh ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorChanged, NullProp): 1638e.Action == CollectionChangeAction.Remove ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorDeleted, new DataRelationPropertyDescriptor((System.Data.DataRelation)e.Element)) : 1646e.Action == CollectionChangeAction.Add ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorAdded, new DataRelationPropertyDescriptor((System.Data.DataRelation)e.Element)) : 1647e.Action == CollectionChangeAction.Refresh ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorChanged, NullProp): 1648e.Action == CollectionChangeAction.Remove ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorDeleted, new DataRelationPropertyDescriptor((System.Data.DataRelation)e.Element)) : 1656e.Action == CollectionChangeAction.Add ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorAdded, new DataColumnPropertyDescriptor((System.Data.DataColumn)e.Element)) : 1657e.Action == CollectionChangeAction.Refresh ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorChanged, NullProp): 1658e.Action == CollectionChangeAction.Remove ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorDeleted, new DataColumnPropertyDescriptor((System.Data.DataColumn)e.Element)) :
fx\src\data\System\Data\DataViewManager.cs (6)
366e.Action == CollectionChangeAction.Add ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorAdded, new DataTablePropertyDescriptor((System.Data.DataTable)e.Element)) : 367e.Action == CollectionChangeAction.Refresh ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorChanged, NullProp) : 368e.Action == CollectionChangeAction.Remove ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorDeleted, new DataTablePropertyDescriptor((System.Data.DataTable)e.Element)) : 376e.Action == CollectionChangeAction.Add ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorAdded, new DataRelationPropertyDescriptor((System.Data.DataRelation)e.Element)) : 377e.Action == CollectionChangeAction.Refresh ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorChanged, NullProp): 378e.Action == CollectionChangeAction.Remove ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorDeleted, new DataRelationPropertyDescriptor((System.Data.DataRelation)e.Element)) :
fx\src\data\System\NewXml\XmlDataDocument.cs (3)
1989Debug.Assert( ! (args.Action == CollectionChangeAction.Add || args.Action == CollectionChangeAction.Remove) || rel.Nested == false ); 1990if ( args.Action == CollectionChangeAction.Refresh ) {
System.Data.Entity (3)
System\Data\Objects\ObjectViewEntityCollectionData.cs (1)
186switch (e.Action)
System\Data\Objects\ObjectViewQueryResultData.cs (2)
233Debug.Assert(e.Action != CollectionChangeAction.Refresh, "Cache should never fire with refresh, it does not have clear"); 235if (e.Action == CollectionChangeAction.Remove)
System.Windows.Forms (22)
winforms\Managed\System\WinForms\BindingMAnagerBase.cs (2)
419switch (e.Action) { 435if (e.Action == CollectionChangeAction.Refresh) {
winforms\Managed\System\WinForms\DataGrid.cs (4)
3280if (ccea.Action == CollectionChangeAction.Add) { 3287} else if (ccea.Action == CollectionChangeAction.Remove) { 3296Debug.Assert(ccea.Action == CollectionChangeAction.Refresh, "what else is possible?"); 7107if (e.Action != CollectionChangeAction.Refresh || e.Element == null)
winforms\Managed\System\WinForms\DataGridTable.cs (3)
1675if (e.Action == CollectionChangeAction.Add) { 1678} else if (e.Action == CollectionChangeAction.Remove) { 1683Debug.Assert(e.Action == CollectionChangeAction.Refresh, "there are only Add, Remove and Refresh in the CollectionChangeAction");
winforms\Managed\System\WinForms\DataGridViewColumnCollection.cs (2)
1087if (ccea.Action == CollectionChangeAction.Add && changeIsInsertion) 1091else if (ccea.Action == CollectionChangeAction.Remove)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (2)
13713if (ccea.Action == CollectionChangeAction.Add) 13721else if (ccea.Action == CollectionChangeAction.Refresh)
winforms\Managed\System\WinForms\DataGridViewRowCollection.cs (9)
2042Debug.Assert(e.Action != CollectionChangeAction.Remove); 2046if (dataGridViewRow != null && e.Action == CollectionChangeAction.Add) 2050OnCollectionChanged_PreNotification(e.Action, rowIndex, rowCount, ref dataGridViewRow, false); 2054e = new CollectionChangeEventArgs(e.Action, dataGridViewRow); 2057OnCollectionChanged_PostNotification(e.Action, rowIndex, rowCount, dataGridViewRow, false, false, false, newCurrentCell); 2070if (dataGridViewRow != null && e.Action == CollectionChangeAction.Add) 2074OnCollectionChanged_PreNotification(e.Action, rowIndex, rowCount, ref dataGridViewRow, changeIsInsertion); 2078e = new CollectionChangeEventArgs(e.Action, dataGridViewRow); 2081OnCollectionChanged_PostNotification(e.Action, rowIndex, rowCount, dataGridViewRow, changeIsDeletion, changeIsInsertion, recreateNewRow, newCurrentCell);