diff options
author | sr55 <[email protected]> | 2007-12-20 18:17:42 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2007-12-20 18:17:42 +0000 |
commit | 497e1b008f2ad22b2a67405e53edd047167a398a (patch) | |
tree | 26f7303012ba259faec831894ee28c0f67d0ae32 /win/C#/frmReadDVD.cs | |
parent | 2f4b0dffd1b896bd7186e8be3d03cc56ae28e051 (diff) |
WinGui:
- Some more code code cleanup done. Nothing major.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1141 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmReadDVD.cs')
-rw-r--r-- | win/C#/frmReadDVD.cs | 39 |
1 files changed, 9 insertions, 30 deletions
diff --git a/win/C#/frmReadDVD.cs b/win/C#/frmReadDVD.cs index 49197eaea..6ab820507 100644 --- a/win/C#/frmReadDVD.cs +++ b/win/C#/frmReadDVD.cs @@ -27,7 +27,7 @@ namespace Handbrake this.mainWindow = parent;
this.dvdInfo = dvdInfoWindow;
startScan();
-
+
}
private void startScan()
@@ -39,17 +39,10 @@ namespace Handbrake }
catch (Exception exc)
{
- if (Properties.Settings.Default.GuiDebug == "Checked")
- {
- MessageBox.Show("frmReadDVD.cs - startScan " + exc.ToString());
- }
- else
- {
- MessageBox.Show(Properties.Settings.Default.defaultError.ToString());
- }
+ MessageBox.Show("frmReadDVD.cs - startScan " + exc.ToString());
}
}
-
+
private void updateUIElements()
{
try
@@ -67,19 +60,12 @@ namespace Handbrake mainWindow.drp_dvdtitle.Text = "Automatic";
mainWindow.drop_chapterFinish.Text = "Auto";
mainWindow.drop_chapterStart.Text = "Auto";
-
+
this.Close();
}
- catch(Exception exc)
+ catch (Exception exc)
{
- if (Properties.Settings.Default.GuiDebug == "Checked")
- {
- MessageBox.Show("frmReadDVD.cs - updateUIElements " + exc.ToString());
- }
- else
- {
- MessageBox.Show(Properties.Settings.Default.defaultError.ToString());
- }
+ MessageBox.Show("frmReadDVD.cs - updateUIElements " + exc.ToString());
}
}
@@ -89,14 +75,14 @@ namespace Handbrake {
try
{
- string appPath = Application.StartupPath.ToString()+ "\\";
+ string appPath = Application.StartupPath.ToString() + "\\";
string strCmdLine = "cmd /c " + '"' + '"' + appPath + "HandBrakeCLI.exe" + '"' + " -i " + '"' + inputFile + '"' + " -t0 -v >" + '"' + appPath + "dvdinfo.dat" + '"' + " 2>&1" + '"';
Process hbproc = Process.Start("CMD.exe", strCmdLine);
hbproc.WaitForExit();
hbproc.Dispose();
hbproc.Close();
-
+
StreamReader sr = new StreamReader(appPath + "dvdinfo.dat");
thisDvd = Parsing.DVD.Parse(sr);
sr.Close();
@@ -105,14 +91,7 @@ namespace Handbrake }
catch (Exception exc)
{
- if (Properties.Settings.Default.GuiDebug == "Checked")
- {
- MessageBox.Show("frmReadDVD.cs - startProc " + exc.ToString());
- }
- else
- {
- MessageBox.Show(Properties.Settings.Default.defaultError.ToString());
- }
+ MessageBox.Show("frmReadDVD.cs - startProc " + exc.ToString());
}
}
|