using System;
namespace Terminal.Gui {
///
/// for events.
///
public class ListViewItemEventArgs : EventArgs {
///
/// The index of the item.
///
public int Item { get; }
///
/// The item.
///
public object Value { get; }
///
/// Initializes a new instance of
///
/// The index of the item.
/// The item
public ListViewItemEventArgs (int item, object value)
{
Item = item;
Value = value;
}
}
///
/// used by the event.
///
public class ListViewRowEventArgs : EventArgs {
///
/// The current row being rendered.
///
public int Row { get; }
///
/// The used by current row or
/// null to maintain the current attribute.
///
public Attribute? RowAttribute { get; set; }
///
/// Initializes with the current row.
///
///
public ListViewRowEventArgs (int row)
{
Row = row;
}
}
}