diff options
author | sr55 <[email protected]> | 2007-07-08 19:46:03 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2007-07-08 19:46:03 +0000 |
commit | 978740968f3e369f4072752c7a3432c7dfdef335 (patch) | |
tree | 84d7b2cb31465a2b3fbbc0e7dbfa52a2f99e4f74 /win/C#/frmReadDVD.cs | |
parent | 3e669fc96e687340cc17ecd8d0894457905f9cfe (diff) |
WinGui:
- Latest C# code
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@659 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmReadDVD.cs')
-rw-r--r-- | win/C#/frmReadDVD.cs | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/win/C#/frmReadDVD.cs b/win/C#/frmReadDVD.cs index d861e8ead..ca70a6ba1 100644 --- a/win/C#/frmReadDVD.cs +++ b/win/C#/frmReadDVD.cs @@ -32,18 +32,21 @@ namespace Handbrake hbProc.StartInfo.FileName = "hbcli.exe";
hbProc.StartInfo.RedirectStandardOutput = true;
hbProc.StartInfo.RedirectStandardError = true;
- hbProc.StartInfo.StandardOutputEncoding = System.Text.Encoding.UTF8;
- hbProc.StartInfo.StandardErrorEncoding = System.Text.Encoding.UTF8;
+ //hbProc.StartInfo.StandardOutputEncoding = System.Text.Encoding.UTF8;
+ //hbProc.StartInfo.StandardErrorEncoding = System.Text.Encoding.UTF8;
hbProc.StartInfo.Arguments = query;
hbProc.StartInfo.UseShellExecute = false;
hbProc.Start();
+ rtf_dvdInfo.Text = "-- Start --";
while (hbProc.StandardOutput.BaseStream.CanRead && !hbProc.HasExited)
{
- MessageBox.Show(hbProc.StandardOutput.ReadLine());
- MessageBox.Show(hbProc.StandardError.ReadLine());
- Console.Read();
+ rtf_dvdInfo.Text = rtf_dvdInfo.Text + "\n" + hbProc.StandardOutput.ReadLine();
+ rtf_dvdInfo.Text = rtf_dvdInfo.Text + "\n" + hbProc.StandardError.ReadLine();
+ MessageBox.Show("Test");
}
+
+ rtf_dvdInfo.Text = rtf_dvdInfo.Text + "\n" + "-- End --";
}
private void btn_ok_Click(object sender, EventArgs e)
|