narsil/Tanshu.Accounts.Helpers/SelectorEvent.cs

39 lines
655 B
C#
Raw Normal View History

using System;
namespace Tanshu.Accounts.Helpers
{
public enum SelectorAction
{
Insert = 1,
Update = 2,
Delete = 3
}
public class SelectorEventArgs<T> : EventArgs
{
public SelectorEventArgs(T item, SelectorAction action)
{
Item = item;
Action = action;
Handled = false;
}
public T Item
{
get;
private set;
}
public SelectorAction Action
{
get;
private set;
}
public bool Handled
{
get;
set;
}
}
}