private void RemoveExternalSubtitle(string rowId, int rowIndex, int rowCellNumber)
{
if (_currentBluRayTitleSubtitle.IsExternal == false)
{
MessageBox.Show("You cannot remove Internal Subtitles", "Internal Subtitle", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
return;
}
if (_currentBluRayTitleSubtitle.ExternalSubtitlePath != null &&_currentBluRayTitleSubtitle.ExternalSubtitlePath != string.Empty)
{
DialogResult warningResult = MessageBox.Show("Are you sure you want to remove the external subtitle?", "Remove Subtitle", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2);
if (warningResult == System.Windows.Forms.DialogResult.Yes)
{
_bluRaySummaryInfo.BluRayTitleInfo.Subtitles.Remove(_currentBluRayTitleSubtitle);
_currentBluRayTitleSubtitle = null;
this.LoadSubtitles();
}
}
}