summaryrefslogtreecommitdiffstats
path: root/win/C#/Parsing
diff options
context:
space:
mode:
authorbrianmario <[email protected]>2007-07-15 17:46:50 +0000
committerbrianmario <[email protected]>2007-07-15 17:46:50 +0000
commitc2162ba1f399eec309e12c328e82de32d81b856a (patch)
tree8fa2a8e6c4a6e556221cf0f09037ba5288daca15 /win/C#/Parsing
parent33d6ae36a4859fbc46e730e4e7630acf2db264e1 (diff)
updated some ToString overrides for proper use in the UI
small change to frmMain to allow for easier tracking of Handbrake CLI process (which we will code soon) cleaned up function drop_chapterStart_SelectedIndexChanged git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@689 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Parsing')
-rw-r--r--win/C#/Parsing/AudioTrack.cs2
-rw-r--r--win/C#/Parsing/Chapter.cs5
-rw-r--r--win/C#/Parsing/Subtitle.cs2
3 files changed, 7 insertions, 2 deletions
diff --git a/win/C#/Parsing/AudioTrack.cs b/win/C#/Parsing/AudioTrack.cs
index 0f89d3d37..268007c3b 100644
--- a/win/C#/Parsing/AudioTrack.cs
+++ b/win/C#/Parsing/AudioTrack.cs
@@ -63,7 +63,7 @@ namespace Handbrake.Parsing
public override string ToString()
{
- return string.Format("{0} ({1}) ({2})", this.m_language, this.m_format, this.m_subFormat);
+ return string.Format("{0} {1} ({2}) ({3})", this.m_trackNumber, this.m_language, this.m_format, this.m_subFormat);
}
public static AudioTrack Parse(StreamReader output)
diff --git a/win/C#/Parsing/Chapter.cs b/win/C#/Parsing/Chapter.cs
index 0715e0cc5..44627ac63 100644
--- a/win/C#/Parsing/Chapter.cs
+++ b/win/C#/Parsing/Chapter.cs
@@ -43,6 +43,11 @@ namespace Handbrake.Parsing
}
}
+ public override string ToString()
+ {
+ return this.m_chapterNumber.ToString();
+ }
+
public static Chapter Parse(StreamReader output)
{
string curLine = output.ReadLine();
diff --git a/win/C#/Parsing/Subtitle.cs b/win/C#/Parsing/Subtitle.cs
index ba037b545..343806ab0 100644
--- a/win/C#/Parsing/Subtitle.cs
+++ b/win/C#/Parsing/Subtitle.cs
@@ -27,7 +27,7 @@ namespace Handbrake.Parsing
public override string ToString()
{
- return this.m_language;
+ return string.Format("{0} {1}", this.m_trackNumber, this.m_language);
}
public static Subtitle Parse(StreamReader output)