diff options
author | sr55 <[email protected]> | 2010-06-06 14:14:19 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2010-06-06 14:14:19 +0000 |
commit | 833e294b1339e9843a3f82fe1b6779be9f7c7093 (patch) | |
tree | f2e8fc2276e26365c16519ba29b62baba1ab908e /win/C#/Parsing/Chapter.cs | |
parent | 62d42d9f7a808d0f5f5432b26f88f977f13269dc (diff) |
WinGui:
- Some changes / improvements to the current models / parsing models.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3359 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Parsing/Chapter.cs')
-rw-r--r-- | win/C#/Parsing/Chapter.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/win/C#/Parsing/Chapter.cs b/win/C#/Parsing/Chapter.cs index 4b3bb2d00..ca8fc3023 100644 --- a/win/C#/Parsing/Chapter.cs +++ b/win/C#/Parsing/Chapter.cs @@ -26,6 +26,23 @@ namespace Handbrake.Parsing public TimeSpan Duration { get; private set; }
/// <summary>
+ /// Create a chapter Object
+ /// </summary>
+ /// <param name="number">
+ /// The number.
+ /// </param>
+ /// <param name="duration">
+ /// The duration.
+ /// </param>
+ /// <returns>
+ /// A new Chapter Object
+ /// </returns>
+ public static Chapter CreateChapterOjbect(int number, TimeSpan duration)
+ {
+ return new Chapter { ChapterNumber = number, Duration = duration };
+ }
+
+ /// <summary>
/// Parse a CLI string to a Chapter object
/// </summary>
/// <param name="output">
|