using System; using System.Data; namespace Terminal.Gui { /// /// Defines the event arguments for event /// public class CellActivatedEventArgs : EventArgs { /// /// The current table to which the new indexes refer. May be null e.g. if selection change is the result of clearing the table from the view /// /// public DataTable Table { get; } /// /// The column index of the cell that is being activated /// /// public int Col { get; } /// /// The row index of the cell that is being activated /// /// public int Row { get; } /// /// Creates a new instance of arguments describing a cell being activated in /// /// /// /// public CellActivatedEventArgs (DataTable t, int col, int row) { Table = t; Col = col; Row = row; } } }