public override void RemoveIndizies(List <int> indiziesToRemove) { if (this.DataSource == null) { return; } // Give the world a chance to cancel or change the removed objects ItemsRemovingIndiziesEventArgs args = new ItemsRemovingIndiziesEventArgs(indiziesToRemove); this.OnItemsRemovingIndizies(args); if (args.Canceled) { return; } this.ClearCachedInfo(); this.DataSource.RemoveIndizies(args.ObjectsToRemove); this.UpdateVirtualListSize(); }
public override void RemoveIndizies(List<int> indiziesToRemove) { if (this.DataSource == null) return; // Give the world a chance to cancel or change the removed objects ItemsRemovingIndiziesEventArgs args = new ItemsRemovingIndiziesEventArgs(indiziesToRemove); this.OnItemsRemovingIndizies(args); if (args.Canceled) return; this.ClearCachedInfo(); this.DataSource.RemoveIndizies(args.ObjectsToRemove); this.UpdateVirtualListSize(); }