public void GoPrevious() { int row = StatementsGrid.Selection?.Row ?? -1; int nextRow = Math.Max(0, row - 1); Logger.Debug($"{nameof(GoPrevious)}: {row} => {nextRow}"); StatementsGrid.Select(new GridCellRange(nextRow, 0), true); }
public void GoNext() { int row = StatementsGrid.Selection?.Row ?? -1; int nextRow = Math.Min(Statements.Count() - 1, row + 1); Logger.Debug($"{nameof(GoNext)}: {row} => {nextRow}"); StatementsGrid.Select(new GridCellRange(nextRow, 0), true); }
public void GoBottom() { if (!Statements.Any()) { return; } Logger.Debug($"{nameof(GoBottom)}"); StatementsGrid.Select(new GridCellRange(Statements.Count() - 1, 0), true); }
public void GoTop() { if (!Statements.Any()) { return; } Logger.Debug($"{nameof(GoTop)}"); StatementsGrid.Select(new GridCellRange(0, 0), true); }