using System; using System.Collections.Generic; namespace mRemoteNG.Tools.CustomCollections { public class CollectionUpdatedEventArgs : EventArgs { public IEnumerable ChangedItems { get; } public ActionType Action { get; } public CollectionUpdatedEventArgs(ActionType action, IEnumerable changedItems) { if (changedItems == null) throw new ArgumentNullException(nameof(changedItems)); Action = action; ChangedItems = changedItems; } } public enum ActionType { Added, Removed, Updated } }