예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        public void GoBottom()
        {
            if (!Statements.Any())
            {
                return;
            }

            Logger.Debug($"{nameof(GoBottom)}");
            StatementsGrid.Select(new GridCellRange(Statements.Count() - 1, 0), true);
        }
예제 #4
0
        public void GoTop()
        {
            if (!Statements.Any())
            {
                return;
            }

            Logger.Debug($"{nameof(GoTop)}");
            StatementsGrid.Select(new GridCellRange(0, 0), true);
        }