private void dgvBluRayDiscInfo_CellClick(object sender, DataGridViewCellEventArgs e)
{
try
{
if (e.RowIndex == -1)
{
this.SortBluRayDiscGrid(e.ColumnIndex);
}
else
{
this.HandleDgvBluRayDiscInfoCellClick(e);
if (_currentBluRayDiscInfo.BluRaySummaryInfoList == null)
{
gbScreen.SetEnabled(false);
this.HandleLoadBluRay();
}
else
{
_bindingListBluRaySummaryInfo = new BindingList<BluRaySummaryInfo>();
foreach (BluRaySummaryInfo info in _currentBluRayDiscInfo.BluRaySummaryInfoList)
{
_bindingListBluRaySummaryInfo.Add(info);
}
this.UpdateUIForBluRaySummary();
}
}
}
catch (Exception ex)
{
_displayErrorMessageService.DisplayError(new ErrorMessage() { DisplayMessage = "There was a problem trying to load the disc summary!", DisplayTitle = "Error.", Exception = ex, MethodNameWhereExceptionOccurred = MethodBase.GetCurrentMethod().Name });
}
}