private void MoveDown_UpdateSelectedIndex() { var oldSelectedIndex = Members.SelectedIndex; if (_viewModel.CanMoveDown && oldSelectedIndex >= 0) { _viewModel.MoveDown(); Members.Items.Refresh(); Members.SelectedIndex = oldSelectedIndex + 1; } }
private void MoveDown_Click(object sender, EventArgs e) { var oldSelectedIndex = Members.SelectedIndex; if (_viewModel.CanMoveDown && oldSelectedIndex >= 0) { _viewModel.MoveDown(); Members.Items.Refresh(); Members.SelectedIndex = oldSelectedIndex + 1; } SetFocusToSelectedRow(); }