forked from lstratman/EasyTabs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathListModificationEventArgs.cs
31 lines (28 loc) · 1021 Bytes
/
ListModificationEventArgs.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
namespace EasyTabs
{
/// <summary>Provides data for the <see cref="ListWithEvents{T}.CollectionModified" /> events.</summary>
[Serializable]
public class ListModificationEventArgs : ListRangeEventArgs
{
/// <summary>Modification being made to the list.</summary>
private readonly ListModification _modification;
/// <summary>Initializes a new instance of the <see cref="ListModificationEventArgs" /> class.</summary>
/// <param name="modification">Modification being made to the list.</param>
/// <param name="startIndex">Index from which the modifications start.</param>
/// <param name="count">Number of modifications being made.</param>
public ListModificationEventArgs(ListModification modification, int startIndex, int count)
: base(startIndex, count)
{
_modification = modification;
}
/// <summary>Gets the type of list modification.</summary>
public ListModification Modification
{
get
{
return _modification;
}
}
}
}