BatchGuy.App.BluRayTitleInfoForm.HandlesDGVSubtitlesCellDoubleClick C# (CSharp) Method

HandlesDGVSubtitlesCellDoubleClick() private method

private HandlesDGVSubtitlesCellDoubleClick ( DataGridViewCellEventArgs e ) : void
e DataGridViewCellEventArgs
return void
        private void HandlesDGVSubtitlesCellDoubleClick(DataGridViewCellEventArgs e)
        {
            var id = dgvSubtitles.Rows[e.RowIndex].Cells[1].Value;
            _currentBluRayTitleSubtitle = _bluRaySummaryInfo.BluRayTitleInfo.Subtitles.SingleOrDefault(a => a.Id == id.ToString());

            if (_currentBluRayTitleSubtitle.IsExternal == false)
            {
                MessageBox.Show("You cannot edit an Internal Subtitles", "Internal Subtitle", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                return;
            }

            BluRayTitleInfoExternalSubtitleForm form = new BluRayTitleInfoExternalSubtitleForm();
            form.SetBluRayTitleInfoExternalSubtitleForEdit(_currentBluRayTitleSubtitle);
            form.ShowDialog();
            if (form.WasSaved)
            {
                this.LoadSubtitles();
            }
        }
BluRayTitleInfoForm