private void assignScrollHandlers(IVerticalScroll verticalScroll) { if (list == null || list.Count <= VISIBLE_ROWS_COUNT) { return; } verticalScroll.ScrollUp += () => { mainView.TopRowIndex--; }; verticalScroll.ScrollDown += () => { mainView.TopRowIndex++; }; }
private void assignScrollHandlers(IVerticalScroll verticalScroll) { if (list == null || list.Count <= VISIBLE_ROWS_COUNT) { return; } verticalScroll.ScrollUp += () => { mainView.TopRowIndex--; }; verticalScroll.ScrollDown += () => { mainView.TopRowIndex++; }; }