OSDN Git Service

import 0.9.4
[handbrake-jp/handbrake-jp.git] / win / C# / Parsing / DVD.cs
index d0802e4..31fe2de 100644 (file)
@@ -4,47 +4,41 @@
           Homepage: <http://handbrake.fr>.\r
           It may be used under the terms of the GNU General Public License. */\r
 \r
-using System;\r
 using System.Collections.Generic;\r
-using System.Windows.Forms;\r
 using System.IO;\r
 \r
 namespace Handbrake.Parsing\r
 {\r
-\r
     /// <summary>\r
     /// An object representing a scanned DVD\r
     /// </summary>\r
     public class DVD\r
     {\r
+        private readonly List<Title> m_titles;\r
 \r
-        private List<Title> m_titles;\r
         /// <summary>\r
-        /// Collection of Titles associated with this DVD\r
+        /// Default constructor for this object\r
         /// </summary>\r
-        public List<Title> Titles\r
+        public DVD()\r
         {\r
-            get\r
-            {\r
-                return this.m_titles;\r
-            }\r
+            m_titles = new List<Title>();\r
         }\r
 \r
         /// <summary>\r
-        /// Default constructor for this object\r
+        /// Collection of Titles associated with this DVD\r
         /// </summary>\r
-        public DVD()\r
+        public List<Title> Titles\r
         {\r
-            this.m_titles = new List<Title>();\r
+            get { return m_titles; }\r
         }\r
 \r
         public static DVD Parse(StreamReader output)\r
         {\r
-            DVD thisDVD = new DVD();\r
+            var thisDVD = new DVD();\r
 \r
             while (!output.EndOfStream)\r
             {\r
-                if ((char)output.Peek() == '+')\r
+                if ((char) output.Peek() == '+')\r
                     thisDVD.m_titles.AddRange(Title.ParseList(output.ReadToEnd()));\r
                 else\r
                     output.ReadLine();\r
@@ -53,4 +47,4 @@ namespace Handbrake.Parsing
             return thisDVD;\r
         }\r
     }\r
-}\r
+}
\ No newline at end of file