public void MoveToChange(DiffViewModel currentDiffViewModel, int indexModifier) { var diffViewModelIndex = DiffViewModels.IndexOf(currentDiffViewModel) + indexModifier; var diffViewModel = DiffViewModels[diffViewModelIndex]; MarginCore.MoveToChange(diffViewModel.LineNumber); ((EditorDiffViewModel)currentDiffViewModel).ShowPopup = false; }
private void NextChange(DiffViewModel currentEditorDiffViewModel) { MoveToChange(currentEditorDiffViewModel, +1); }
private bool NextChangeCanExecute(DiffViewModel currentEditorDiffViewModel) { return(DiffViewModels.IndexOf(currentEditorDiffViewModel) < (DiffViewModels.Count - 1)); }
private void PreviousChange(DiffViewModel currentEditorDiffViewModel) { MoveToChange(currentEditorDiffViewModel, -1); }
private bool PreviousChangeCanExecute(DiffViewModel currentEditorDiffViewModel) { return(DiffViewModels.IndexOf(currentEditorDiffViewModel) > 0); }