OSDN Git Service

add win/C# diff files
[handbrake-jp/handbrake-jp.git] / win / C# / Model / DriveInformation.cs.diff
1 diff --git a/win/C#/Model/DriveInformation.cs b/win/C#/Model/DriveInformation.cs
2 new file mode 100644
3 index 0000000..d7cef0e
4 --- /dev/null
5 +++ b/win/C#/Model/DriveInformation.cs
6 @@ -0,0 +1,39 @@
7 +/*  DriveInformation.cs $\r
8 +    This file is part of the HandBrake source code.\r
9 +    Homepage: <http://handbrake.fr>.\r
10 +    It may be used under the terms of the GNU General Public License. */\r
11 +\r
12 +namespace Handbrake.Model\r
13 +{\r
14 +    /// <summary>\r
15 +    /// Information about a DVD drive\r
16 +    /// </summary>\r
17 +    public class DriveInformation\r
18 +    {\r
19 +        /// <summary>\r
20 +        /// Gets or sets A Unique ID That represemts this model.\r
21 +        /// </summary>\r
22 +        public int Id { get; set; }\r
23 +\r
24 +        /// <summary>\r
25 +        /// Gets or sets The Drive Volume Name\r
26 +        /// </summary>\r
27 +        public string VolumeLabel { get; set; }\r
28 +\r
29 +        /// <summary>\r
30 +        /// Gets or sets The Root Directory\r
31 +        /// </summary>\r
32 +        public string RootDirectory { get; set; }\r
33 +\r
34 +        /// <summary>\r
35 +        /// Returns  "Drive" + Id  (e.g  Drive2)\r
36 +        /// </summary>\r
37 +        /// <returns>\r
38 +        /// A String that contrains "Drive" and it's ID\r
39 +        /// </returns>\r
40 +        public override string ToString()\r
41 +        {\r
42 +            return "Drive" + Id;\r
43 +        }\r
44 +    }\r
45 +}
46 \ No newline at end of file