diff options
author | sr55 <[email protected]> | 2007-10-16 18:29:18 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2007-10-16 18:29:18 +0000 |
commit | 3a86ddf273f92ad057e40f4b6f08545d3cef86a4 (patch) | |
tree | b829d285ad0c101396578c4e529a8bca264a25b3 /win/C#/frmQueue.cs | |
parent | 8047f1a203cc9a6f915becef26e52518b64b09fb (diff) |
WinGui:
- Some main window tweaks. Some of the window colours were not appearing correctly. (thanks Lant for pointing this out)
- Added an exception handler into the queue. See if we can't track down why windows seems to lose track of the process/threads.
- Turbo First pass now deselects / disables should a non h264 codec be selected. it also re-enables nicer now.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1028 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmQueue.cs')
-rw-r--r-- | win/C#/frmQueue.cs | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/win/C#/frmQueue.cs b/win/C#/frmQueue.cs index 4690b51d9..117bb147f 100644 --- a/win/C#/frmQueue.cs +++ b/win/C#/frmQueue.cs @@ -24,13 +24,20 @@ namespace Handbrake private void btn_q_encoder_Click(object sender, EventArgs e)
{
- if (list_queue.Items.Count != 0)
+ try
+ {
+ if (list_queue.Items.Count != 0)
+ {
+ progressBar.Value = 0;
+ lbl_progressValue.Text = "0 %";
+ progressBar.Step = 100 / list_queue.Items.Count;
+ progressBar.Update();
+ ThreadPool.QueueUserWorkItem(startProc);
+ }
+ }
+ catch (Exception exc)
{
- progressBar.Value = 0;
- lbl_progressValue.Text = "0 %";
- progressBar.Step = 100 / list_queue.Items.Count;
- progressBar.Update();
- ThreadPool.QueueUserWorkItem(startProc);
+ MessageBox.Show(exc.ToString());
}
}
@@ -161,20 +168,12 @@ namespace Handbrake }
#endregion
- #region Window Management
private void btn_Close_Click(object sender, EventArgs e)
{
this.Hide();
}
- private void btn_minimise_Click(object sender, EventArgs e)
- {
- this.WindowState = FormWindowState.Minimized;
- }
-
- #endregion
-
protected override void OnClosing(CancelEventArgs e)
{
e.Cancel = true;
|