summaryrefslogtreecommitdiffstats
path: root/win/C#/frmReadDVD.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2007-08-29 17:14:42 +0000
committersr55 <[email protected]>2007-08-29 17:14:42 +0000
commitc2501467f65a24f2e098b0932da4908ae430ad3c (patch)
tree1cde86d069ec3123dc4f10b2b1c66f46e03ee1e2 /win/C#/frmReadDVD.cs
parent8d1c8819a2695068d7999e74368bdb4401827f05 (diff)
WinGui:
- Gui debug more added to tools > options. - More exception handling added - frmReadDVD is now automatic. User no longer has to manually start scan process. - Re-enabled onwindow scan status message. Removed Message box which alerts scan status. - Few other small code tweaks. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@893 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmReadDVD.cs')
-rw-r--r--win/C#/frmReadDVD.cs50
1 files changed, 29 insertions, 21 deletions
diff --git a/win/C#/frmReadDVD.cs b/win/C#/frmReadDVD.cs
index 526e9bd28..f697e3425 100644
--- a/win/C#/frmReadDVD.cs
+++ b/win/C#/frmReadDVD.cs
@@ -28,28 +28,34 @@ namespace Handbrake
this.inputFile = inputFile;
this.mainWindow = parent;
this.dvdInfo = dvdInfoWindow;
+ startScan();
+
}
- private void btn_ok_Click(object sender, EventArgs e)
+ private void startScan()
{
-
try
{
- btn_ok.Enabled = false;
//btn_skip.Visible = true;
- lbl_pressOk.Visible = false;
lbl_progress.Text = "0%";
//lbl_progress.Visible = true;
lbl_status.Visible = true;
// throw cli call and parsing on it's own thread
ThreadPool.QueueUserWorkItem(startProc);
}
- catch(Exception exc)
+ catch (Exception exc)
{
- MessageBox.Show("frmReadDVD.cs - btn_ok_Click " + exc.ToString());
+ if (Properties.Settings.Default.GuiDebug == "Checked")
+ {
+ MessageBox.Show("frmReadDVD.cs - startScan " + exc.ToString());
+ }
+ else
+ {
+ MessageBox.Show(Properties.Settings.Default.defaultError.ToString());
+ }
}
}
-
+
private void updateUIElements()
{
try
@@ -69,7 +75,14 @@ namespace Handbrake
}
catch(Exception exc)
{
- MessageBox.Show("frmReadDVD.cs - updateUIElements " + exc.ToString());
+ if (Properties.Settings.Default.GuiDebug == "Checked")
+ {
+ MessageBox.Show("frmReadDVD.cs - updateUIElements " + exc.ToString());
+ }
+ else
+ {
+ MessageBox.Show(Properties.Settings.Default.defaultError.ToString());
+ }
}
}
@@ -103,7 +116,14 @@ namespace Handbrake
}
catch (Exception exc)
{
- MessageBox.Show("frmReadDVD.cs - startProc " + exc.ToString());
+ if (Properties.Settings.Default.GuiDebug == "Checked")
+ {
+ MessageBox.Show("frmReadDVD.cs - startProc " + exc.ToString());
+ }
+ else
+ {
+ MessageBox.Show(Properties.Settings.Default.defaultError.ToString());
+ }
}
}
@@ -146,17 +166,5 @@ namespace Handbrake
this.lbl_progress.Text = progress.ToString() + "%";
}*/
- private void btn_skip_Click(object sender, EventArgs e)
- {
- try
- {
- this.Close();
- //cancel = 1;
- }
- catch (Exception exc)
- {
- MessageBox.Show(exc.ToString());
- }
- }
}
} \ No newline at end of file