summaryrefslogtreecommitdiffstats
path: root/win/C#/frmReadDVD.cs
diff options
context:
space:
mode:
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