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();
		}
Beispiel #2
0
		protected virtual void OnItemsRemovingIndizies(ItemsRemovingIndiziesEventArgs e) {
			if (this.ItemsRemovingIndizies != null)
				this.ItemsRemovingIndizies(this, e);
		}