private void AddExternalSubtitle()
{
string id = string.Empty;
string file = txtExternalSubtitlePath.Text;
if (_currentBluRaySummaryInfo.BluRayTitleInfo.Subtitles != null)
id = this.GetNewSubtitleId();
else
id = "1:";
BluRayTitleSubtitle subtitle = new BluRayTitleSubtitle()
{
CanEdit = true,
IsCommentary = false,
IsExternal = true,
IsSelected = true,
Id = id,
MKVMergeItem = _currentMKVMergeItem,
ExternalSubtitlePath = file,
Language = _currentMKVMergeItem.Language.Language
};
subtitle.Text = string.Format("{0} Subtitle ({1}), {2}", id, file.SubtitleFileExtension().ToUpper(), subtitle.MKVMergeItem.Language.Language);
if (_currentBluRaySummaryInfo.BluRayTitleInfo.Subtitles == null)
_currentBluRaySummaryInfo.BluRayTitleInfo.Subtitles = new List<BluRayTitleSubtitle>();
_currentBluRaySummaryInfo.BluRayTitleInfo.Subtitles.Add(subtitle);
}