summaryrefslogtreecommitdiffstats
path: root/win/C#/Parsing/DVD.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-01-08 20:11:26 +0000
committersr55 <[email protected]>2009-01-08 20:11:26 +0000
commit979826e24b3f187c3b488da47b720234c93f293d (patch)
tree1341bb819559c40cd68ff39237fc354aa6f27dea /win/C#/Parsing/DVD.cs
parenta385d189c2830994e460b8739546825d7f4418d2 (diff)
WinGui:
- Code cleanup. Remoes old using tags, removes unused code, cleans up some functions to make them shorter/more readable etc. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2069 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Parsing/DVD.cs')
-rw-r--r--win/C#/Parsing/DVD.cs26
1 files changed, 10 insertions, 16 deletions
diff --git a/win/C#/Parsing/DVD.cs b/win/C#/Parsing/DVD.cs
index d0802e4c9..31fe2de12 100644
--- a/win/C#/Parsing/DVD.cs
+++ b/win/C#/Parsing/DVD.cs
@@ -4,47 +4,41 @@
Homepage: <http://handbrake.fr>.
It may be used under the terms of the GNU General Public License. */
-using System;
using System.Collections.Generic;
-using System.Windows.Forms;
using System.IO;
namespace Handbrake.Parsing
{
-
/// <summary>
/// An object representing a scanned DVD
/// </summary>
public class DVD
{
+ private readonly List<Title> m_titles;
- private List<Title> m_titles;
/// <summary>
- /// Collection of Titles associated with this DVD
+ /// Default constructor for this object
/// </summary>
- public List<Title> Titles
+ public DVD()
{
- get
- {
- return this.m_titles;
- }
+ m_titles = new List<Title>();
}
/// <summary>
- /// Default constructor for this object
+ /// Collection of Titles associated with this DVD
/// </summary>
- public DVD()
+ public List<Title> Titles
{
- this.m_titles = new List<Title>();
+ get { return m_titles; }
}
public static DVD Parse(StreamReader output)
{
- DVD thisDVD = new DVD();
+ var thisDVD = new DVD();
while (!output.EndOfStream)
{
- if ((char)output.Peek() == '+')
+ if ((char) output.Peek() == '+')
thisDVD.m_titles.AddRange(Title.ParseList(output.ReadToEnd()));
else
output.ReadLine();
@@ -53,4 +47,4 @@ namespace Handbrake.Parsing
return thisDVD;
}
}
-}
+} \ No newline at end of file