Ejemplo n.º 1
0
 private void UpdateSRTPage()
 {
     if (subfile != null)
     {
         subfile.RecalculateTimes();
         srtTextBox.Text = subfile.GetSRTText();
         SRTInfo srtInfo = subfile.GetSRTInfo();
         unscannedLabel.Text        = srtInfo.unscanned.ToString();
         containingErrorsLabel.Text = srtInfo.containingErrors.ToString();
         finishedLabel.Text         = srtInfo.finished.ToString();
     }
 }
Ejemplo n.º 2
0
        public SRTInfo GetSRTInfo()
        {
            SRTInfo r = new SRTInfo();

            foreach (SubtitleCaption d in captions)
            {
                if (!d.Scanned)
                {
                    r.unscanned++;
                }
                else if (d.SRTText.Contains("¤"))
                {
                    r.containingErrors++;
                }
                else
                {
                    r.finished++;
                }
            }

            return(r);
        }