2 using System.Collections.Generic;
\r
3 using System.ComponentModel;
\r
5 using System.Drawing;
\r
7 using System.Text.RegularExpressions;
\r
8 using System.Windows.Forms;
\r
10 using System.Threading;
\r
11 using System.Diagnostics;
\r
13 namespace Handbrake.Parsing
\r
17 /// An object representing a scanned DVD
\r
22 private List<Title> m_titles;
\r
24 /// Collection of Titles associated with this DVD
\r
26 public List<Title> Titles
\r
30 return this.m_titles;
\r
35 /// Default constructor for this object
\r
39 this.m_titles = new List<Title>();
\r
42 public static DVD Parse(StreamReader output)
\r
44 DVD thisDVD = new DVD();
\r
45 while (!output.EndOfStream)
\r
47 if ((char)output.Peek() == '+')
\r
49 string testb = output.ReadToEnd();
\r
50 thisDVD.m_titles.AddRange(Title.ParseList(testb));
\r