summaryrefslogtreecommitdiffstats
path: root/win/C#/frmQueue.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-03-06 14:27:44 +0000
committersr55 <[email protected]>2009-03-06 14:27:44 +0000
commit881abedc7ce136b57d8adde824a3235b5526dc52 (patch)
tree58f5036b9d90c5f96e39d274107ae4f5a651ffcc /win/C#/frmQueue.cs
parentf282e004f6cee533d16704527173b1b137dc5260 (diff)
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
Diffstat (limited to 'win/C#/frmQueue.cs')
-rw-r--r--win/C#/frmQueue.cs21
1 files changed, 20 insertions, 1 deletions
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();
}
+ /// <summary>
+ /// Initializes the Queue list, then shows and activates the window
+ /// </summary>
+ public new void Show()
+ {
+ Show(true);
+ }
+
+ /// <summary>
+ /// Initializes the Queue list only if doSetQueue is true, then shows and activates the window
+ /// </summary>
+ /// <param name="doSetQueue">Indicates whether to call setQueue() before showing the window</param>
+ 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
+}