From 881abedc7ce136b57d8adde824a3235b5526dc52 Mon Sep 17 00:00:00 2001 From: sr55 Date: Fri, 6 Mar 2009 14:27:44 +0000 Subject: WinGui: - Add an override for the queue show method. Saves calling setQueue() before Show(). - Fix a couple of message boxes appearing behind windows. Thanks go to: ExDeus git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2230 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/frmQueue.cs | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'win/C#/frmQueue.cs') diff --git a/win/C#/frmQueue.cs b/win/C#/frmQueue.cs index 36e8b067e..86549a20f 100644 --- a/win/C#/frmQueue.cs +++ b/win/C#/frmQueue.cs @@ -50,6 +50,25 @@ namespace Handbrake updateUIElements(); } + /// + /// Initializes the Queue list, then shows and activates the window + /// + public new void Show() + { + Show(true); + } + + /// + /// Initializes the Queue list only if doSetQueue is true, then shows and activates the window + /// + /// Indicates whether to call setQueue() before showing the window + public void Show(bool doSetQueue) + { + if (doSetQueue) setQueue(); + base.Show(); + Activate(); + } + // Start and Stop Controls private void btn_encode_Click(object sender, EventArgs e) { @@ -287,4 +306,4 @@ namespace Handbrake base.OnClosing(e); } } -} \ No newline at end of file +} -- cgit v1.2.3