private HandleDgvBluRayDiscInfoCellClick ( System.Windows.Forms.DataGridViewCellEventArgs e ) : void | ||
e | System.Windows.Forms.DataGridViewCellEventArgs | |
Результат | void |
private void HandleDgvBluRayDiscInfoCellClick(DataGridViewCellEventArgs e)
{
if (e.RowIndex == -1)
return;
var id = dgvBluRayDiscInfo.Rows[e.RowIndex].Cells[0].Value;
_currentBluRayDiscInfo = _bindingListBluRayDiscInfo.SingleOrDefault(d => d.Id == id.ToString().StringToInt());
_currentBluRayDiscGridRowIndex = e.RowIndex;
}