summaryrefslogtreecommitdiffstats
path: root/win/C#/Model
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-03-12 21:24:42 +0000
committersr55 <[email protected]>2010-03-12 21:24:42 +0000
commit8cd6d5369932ac0889cb9910df92a79531f073cb (patch)
tree95a09b480e55b46abc489b5529251e237dccfe5d /win/C#/Model
parentce0f63162da3c62291231f8be6033981a54997ef (diff)
WinGui:
The Source button dropdown menu can now display multiple ready DVD drives. Previously only the first ready drive would be displayed. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3162 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Model')
-rw-r--r--win/C#/Model/DriveInformation.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/win/C#/Model/DriveInformation.cs b/win/C#/Model/DriveInformation.cs
index d71d3a8e9..f22cdf982 100644
--- a/win/C#/Model/DriveInformation.cs
+++ b/win/C#/Model/DriveInformation.cs
@@ -10,6 +10,12 @@ namespace Handbrake.Model
/// </summary>
public class DriveInformation
{
+
+ /// <summary>
+ /// Gets or sets A Unique ID That represemts this model.
+ /// </summary>
+ public int Id { get; set; }
+
/// <summary>
/// Gets or sets The Drive Volume Name
/// </summary>
@@ -19,5 +25,16 @@ namespace Handbrake.Model
/// Gets or sets The Root Directory
/// </summary>
public string RootDirectory { get; set; }
+
+ /// <summary>
+ /// Returns "Drive" + Id (e.g Drive2)
+ /// </summary>
+ /// <returns>
+ /// A String that contrains "Drive" and it's ID
+ /// </returns>
+ public override string ToString()
+ {
+ return "Drive" + Id;
+ }
}
} \ No newline at end of file