2 using System.Collections.Generic;
\r
3 using System.ComponentModel;
\r
5 using System.Drawing;
\r
7 using System.Windows.Forms;
\r
11 public partial class frmReadDVD : Form
\r
16 public frmReadDVD(string inputFile)
\r
18 InitializeComponent();
\r
19 this.inputFile = inputFile;
\r
22 private void frmReadDVD_Load(object sender, EventArgs e)
\r
27 public void start(string filename)
\r
29 MessageBox.Show(filename);
\r
30 string query = "-i " + '"' + filename + '"' + " -t0";
\r
31 System.Diagnostics.Process hbProc = new System.Diagnostics.Process();
\r
32 hbProc.StartInfo.FileName = "hbcli.exe";
\r
33 hbProc.StartInfo.RedirectStandardOutput = true;
\r
34 hbProc.StartInfo.RedirectStandardError = true;
\r
35 //hbProc.StartInfo.StandardOutputEncoding = System.Text.Encoding.UTF8;
\r
36 //hbProc.StartInfo.StandardErrorEncoding = System.Text.Encoding.UTF8;
\r
37 hbProc.StartInfo.Arguments = query;
\r
38 hbProc.StartInfo.UseShellExecute = false;
\r
41 rtf_dvdInfo.Text = "-- Start --";
\r
42 while (hbProc.StandardOutput.BaseStream.CanRead && !hbProc.HasExited)
\r
44 rtf_dvdInfo.Text = rtf_dvdInfo.Text + "\n" + hbProc.StandardOutput.ReadLine();
\r
45 rtf_dvdInfo.Text = rtf_dvdInfo.Text + "\n" + hbProc.StandardError.ReadLine();
\r
46 MessageBox.Show("Test");
\r
49 rtf_dvdInfo.Text = rtf_dvdInfo.Text + "\n" + "-- End --";
\r
52 private void btn_ok_Click(object sender, EventArgs e)
\r