Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ParentRelationCollectionChanged()

void System.Data.DataView.ParentRelationCollectionChanged ( object sender,
CollectionChangeEventArgs e )
inlinepackageinherited

Definition at line 1440 of file DataView.cs.

1441 {
1442 DataRelationPropertyDescriptor propDesc = null;
1443 OnListChanged((e.Action == CollectionChangeAction.Add) ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorAdded, new DataRelationPropertyDescriptor((DataRelation)e.Element)) : ((e.Action == CollectionChangeAction.Refresh) ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorChanged, propDesc) : ((e.Action == CollectionChangeAction.Remove) ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorDeleted, new DataRelationPropertyDescriptor((DataRelation)e.Element)) : null)));
1444 }
void Add(TKey key, TValue value)
virtual void OnListChanged(ListChangedEventArgs e)
Definition DataView.cs:1209

References System.ComponentModel.CollectionChangeEventArgs.Action, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.ComponentModel.CollectionChangeEventArgs.Element, and System.Data.DataView.OnListChanged().