internal void Initialize(Logic.TransportStream.TransportStreamParser tsParser, string fileName)
 {
     _tsParser = tsParser;
     if (string.IsNullOrEmpty(Configuration.Settings.Language.TransportStreamSubtitleChooser.Title))
         Text = string.Format("Transport stream subtitle chooser - {0}", fileName);
     else
         Text = string.Format(Configuration.Settings.Language.TransportStreamSubtitleChooser.Title, fileName);
     foreach (int id in tsParser.SubtitlePacketIds)
     {
         string s = string.Format(string.Format("Transport Packet Identifier (PID) = {0}, number of subtitles = {1}", id, tsParser.GetDvbSubtitles(id).Count));
         if (!string.IsNullOrEmpty(Configuration.Settings.Language.TransportStreamSubtitleChooser.PidLine))
             s = string.Format(string.Format(Configuration.Settings.Language.TransportStreamSubtitleChooser.PidLine, id, tsParser.GetDvbSubtitles(id).Count));
         listBoxTracks.Items.Add(s);
     }
     listBoxTracks.SelectedIndex = 0;
 }
        internal void Initialize(Logic.TransportStream.TransportStreamParser tsParser, string fileName)
        {
            _tsParser = tsParser;
            Text = string.Format(Configuration.Settings.Language.TransportStreamSubtitleChooser.Title, fileName);

            foreach (int id in tsParser.SubtitlePacketIds)
            {
                listBoxTracks.Items.Add(string.Format(Configuration.Settings.Language.TransportStreamSubtitleChooser.PidLine, id, tsParser.GetDvbSubtitles(id).Count));
            }
            listBoxTracks.SelectedIndex = 0;
        }