///<summary> ///</summary> new public void Add(T ivg) { base.Add(ivg); CustomListEventArgs args = new CustomListEventArgs(); args.Action = CustomListActions.Add; args.Object = ivg; args.CustomList = this; OnCollectionChanged(args); }
private void OnCollectionChanged(CustomListEventArgs args) { EventArgs arguments = EventArgs.Empty; if (args != null) { arguments = args; } if (CollectionChanged != null) { CollectionChanged(this, arguments); } }
void _input_output_CollectionChanged(object sender, EventArgs e) { CustomListEventArgs args = e as CustomListEventArgs; if (args != null && args.Action == CustomListActions.Add) { StorageItem si = (StorageItem)args.Object; if (args.CustomList == _output) { si.StorageItemType = StorageItemType.Output; } else { si.StorageItemType = StorageItemType.Input; } } }