summaryrefslogtreecommitdiffstats
path: root/win/C#/frmQueue.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2007-09-06 19:29:43 +0000
committersr55 <[email protected]>2007-09-06 19:29:43 +0000
commitf4b5569ecc77150c7bde00b9368aa81fe33b7cfd (patch)
treec8f0349eacbc44cab4c4ab8333d19187412d5b32 /win/C#/frmQueue.cs
parent34066d8b700f3ec50e77a59844e8467335ca043f (diff)
WinGui:
- DVD Title and chapter drop downs now reset when a new DVD source is scanned. - Queue code cleaned up a bit. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@930 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmQueue.cs')
-rw-r--r--win/C#/frmQueue.cs30
1 files changed, 7 insertions, 23 deletions
diff --git a/win/C#/frmQueue.cs b/win/C#/frmQueue.cs
index 5dfdec47b..c40ff268d 100644
--- a/win/C#/frmQueue.cs
+++ b/win/C#/frmQueue.cs
@@ -20,10 +20,8 @@ namespace Handbrake
InitializeComponent();
}
- int initialListCount = 0;
- bool started = false;
+ #region Queue Handling
-
private void btn_q_encoder_Click(object sender, EventArgs e)
{
progressBar.Value = 0;
@@ -33,27 +31,15 @@ namespace Handbrake
ThreadPool.QueueUserWorkItem(startProc);
}
- /*
- *
- * Code to Handle the CLI and updating of the UI as each process is completed.
- *
- */
-
[DllImport("user32.dll")]
public static extern void LockWorkStation();
[DllImport("user32.dll")]
public static extern int ExitWindowsEx(int uFlags, int dwReason);
- private void processItem()
- {
-
- }
-
private void startProc(object state)
{
try
{
- initialListCount = list_queue.Items.Count;
while (list_queue.Items.Count != 0)
{
string query = list_queue.Items[0].ToString();
@@ -128,11 +114,8 @@ namespace Handbrake
progressBar.Update();
}
- /*
- *
- * Code to Re-arrange / Delete items from the Queue
- *
- */
+ #endregion
+
#region Queue Management
private void btn_up_Click(object sender, EventArgs e)
@@ -175,9 +158,8 @@ namespace Handbrake
}
#endregion
- /*
- * Hide the Queue Window
- */
+ #region Window Management
+
private void btn_Close_Click(object sender, EventArgs e)
{
this.Hide();
@@ -187,5 +169,7 @@ namespace Handbrake
{
this.WindowState = FormWindowState.Minimized;
}
+
+ #endregion
}
} \ No newline at end of file