internal void Changes(IndexedCollection indexedCollection, NotifyCollectionChangedEventArgs arg) { if (this.CollectionChanged != null) { this.CollectionChanged(indexedCollection, arg); } switch (arg.Action) { case NotifyCollectionChangedAction.Add: foreach (var i in arg.NewItems) { if (i is ItemBase item) { this.References.Add(item); } } break; case NotifyCollectionChangedAction.Remove: foreach (var i in arg.OldItems) { if (i is ItemBase item) { this.References.Remove(item); } } break; case NotifyCollectionChangedAction.Replace: foreach (var i in arg.OldItems) { if (i is ItemBase item) { this.References.Remove(item); } } foreach (var i in arg.NewItems) { if (i is ItemBase item) { this.References.Add(item); } } break; case NotifyCollectionChangedAction.Move: case NotifyCollectionChangedAction.Reset: default: break; } }
/// <summary> /// Ctor /// </summary> static PropertyCollection() { PropertyCollection.Key = IndexedCollection <PropertyModel> .GetMethodKey(c => c.Name); }
/// <summary> /// Ctor /// </summary> static PartitionRefCollection() { PartitionRefCollection.Key = IndexedCollection <PartitionRefModel> .GetMethodKey(c => c.PartitionName); }
/// <summary> /// Ctor /// </summary> static FileCollection() { FileCollection.Key = IndexedCollection <FileElement> .GetMethodKey(c => c.Path); }
/// <summary> /// Ctor /// </summary> static ConstraintColumnCollection() { ConstraintColumnCollection.Key = IndexedCollection <ConstraintColumnModel> .GetMethodKey(c => c.ColumnName); }
static ColumnCollection() { ColumnCollection.Key = IndexedCollection <ColumnModel> .GetMethodKey(c => c.Key); }
/// <summary> /// Ctor /// </summary> static ConstraintCollection() { ConstraintCollection.Key = IndexedCollection <ConstraintModel> .GetMethodKey(c => c.Key); }
/// <summary> /// Ctor /// </summary> static SubPartitionCollection() { SubPartitionCollection.Key = IndexedCollection <SubPartitionModel> .GetMethodKey(c => c.Name); }
/// <summary> /// Ctor /// </summary> static TablespaceCollection() { TablespaceCollection.Key = IndexedCollection <TablespaceModel> .GetMethodKey(c => c.Name); }
static PackageCollection() { PackageCollection.Key = IndexedCollection <PackageModel> .GetMethodKey(c => c.Key); }
/// <summary> /// Ctor /// </summary> static ProcedureCollection() { ProcedureCollection.Key = IndexedCollection <ProcedureModel> .GetMethodKey(c => c.Key); }
/// <summary> /// Ctor /// </summary> static PrivilegeCollection() { PrivilegeCollection.Key = IndexedCollection<PrivilegeModel>.GetMethodKey(c => c.Name); }
/// <summary> /// Ctor /// </summary> static IndexCollection() { IndexCollection.Key = IndexedCollection <IndexModel> .GetMethodKey(c => c.Key); }
/// <summary> /// Ctor /// </summary> static SynonymCollection() { SynonymCollection.Key = IndexedCollection <SynonymModel> .GetMethodKey(c => c.Key); }
/// <summary> /// Ctor /// </summary> static SequenceCollection() { SequenceCollection.Key = IndexedCollection <SequenceModel> .GetMethodKey(c => c.Key); }
/// <summary> /// Ctor /// </summary> static TableCollection() { IndexedCollection <TableModel> .Key = IndexedCollection <TableModel> .GetMethodKey(c => c.Key); }
/// <summary> /// Ctor /// </summary> static TypeCollection() { TypeCollection.Key = IndexedCollection <TypeItem> .GetMethodKey(c => c.Key); }
/// <summary> /// Ctor /// </summary> static PartitionColumnCollection() { PartitionColumnCollection.Key = IndexedCollection <PartitionColumnModel> .GetMethodKey(c => c.ColumnName); }
/// <summary> /// Ctor /// </summary> static TriggerCollection() { TriggerCollection.Key = IndexedCollection <TriggerModel> .GetMethodKey(c => c.Key); }
/// <summary> /// Ctor /// </summary> static GrantCollection() { GrantCollection.Key = IndexedCollection <GrantModel> .GetMethodKey(c => c.Key); }
/// <summary> /// Ctor /// </summary> static ArgumentCollection() { ArgumentCollection.Key = IndexedCollection <ArgumentModel> .GetMethodKey(c => c.Key); }
static IndexColumnCollection() { IndexColumnCollection.Key = IndexedCollection <IndexColumnModel> .GetMethodKey(c => c.Name); }