From bdf19259ac2d6ac94abf0fad38ce6c98e3e58460 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 4 Jul 2009 14:24:59 +0000 Subject: WinGui: - Update checker code cleaned up and multi-threaded. (Thanks to darkassassin ) Made some minor changes to this code to fit it in. http://forum.handbrake.fr/viewtopic.php?f=4&t=11353 - Queue window no longer takes focus on each new addition to the queue. ( Quite annoying otherwise ) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2661 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/frmQueue.cs | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'win/C#/frmQueue.cs') diff --git a/win/C#/frmQueue.cs b/win/C#/frmQueue.cs index 13c0e1f3e..c7b280ef3 100644 --- a/win/C#/frmQueue.cs +++ b/win/C#/frmQueue.cs @@ -22,21 +22,21 @@ namespace Handbrake InitializeComponent(); this.queue = q; - queue.OnEncodeStart += new EventHandler(queue_OnEncodeStart); - queue.OnQueueFinished += new EventHandler(queue_OnQueueFinished); - queue.OnPaused += new EventHandler(queue_OnPaused); + queue.OnEncodeStart += new EventHandler(queueOnEncodeStart); + queue.OnQueueFinished += new EventHandler(queueOnQueueFinished); + queue.OnPaused += new EventHandler(queueOnPaused); } - void queue_OnPaused(object sender, EventArgs e) + void queueOnPaused(object sender, EventArgs e) { setUIEncodeFinished(); updateUIElements(); } - void queue_OnQueueFinished(object sender, EventArgs e) + void queueOnQueueFinished(object sender, EventArgs e) { setUIEncodeFinished(); resetQueue(); // Reset the Queue Window } - void queue_OnEncodeStart(object sender, EventArgs e) + void queueOnEncodeStart(object sender, EventArgs e) { setUIEncodeStarted(); // make sure the UI is set correctly setCurrentEncodeInformation(); @@ -56,7 +56,7 @@ namespace Handbrake /// public new void Show() { - Show(true); + Show(true); } /// @@ -67,7 +67,8 @@ namespace Handbrake { if (doSetQueue) setQueue(); base.Show(); - Activate(); + + //Activate(); } // Start and Stop Controls -- cgit v1.2.3