diff options
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r-- | win/C#/frmMain.cs | 36 |
1 files changed, 23 insertions, 13 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs index 295d19ea7..8e69a8f2c 100644 --- a/win/C#/frmMain.cs +++ b/win/C#/frmMain.cs @@ -397,6 +397,12 @@ namespace Handbrake rtf_h264advanced.Text = "";
}
+ private void btn_ActivityWindow_Click(object sender, EventArgs e)
+ {
+ Form ActivityWindow = new frmActivityWindow();
+ ActivityWindow.ShowDialog();
+ }
+
#endregion
#region frmMain Actions
@@ -1066,9 +1072,8 @@ namespace Handbrake [DllImport("user32.dll")]
public static extern int ExitWindowsEx(int uFlags, int dwReason);
- private void btn_queue_Click(object sender, EventArgs e)
+ private void btn_start_Click(object sender, EventArgs e)
{
-
if (text_source.Text == "" || text_source.Text == "Click 'Browse' to continue" || text_destination.Text == "")
MessageBox.Show("No source OR destination selected.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
else
@@ -1079,17 +1084,13 @@ namespace Handbrake else
query = hb_common_func.GenerateTheQuery(this);
- queueWindow.list_queue.Items.Add(query);
- queueWindow.Show();
+ ThreadPool.QueueUserWorkItem(procMonitor, query);
+ lbl_encode.Visible = true;
+ lbl_encode.Text = "Encoding in Progress";
}
}
- private void showQueue()
- {
- queueWindow.Show();
- }
-
- private void btn_encode_Click(object sender, EventArgs e)
+ private void btn_add2Queue_Click(object sender, EventArgs e)
{
if (text_source.Text == "" || text_source.Text == "Click 'Browse' to continue" || text_destination.Text == "")
MessageBox.Show("No source OR destination selected.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
@@ -1101,12 +1102,21 @@ namespace Handbrake else
query = hb_common_func.GenerateTheQuery(this);
- ThreadPool.QueueUserWorkItem(procMonitor, query);
- lbl_encode.Visible = true;
- lbl_encode.Text = "Encoding in Progress";
+ queueWindow.list_queue.Items.Add(query);
+ queueWindow.Show();
}
}
+ private void btn_showQueue_Click(object sender, EventArgs e)
+ {
+ showQueue();
+ }
+
+ private void showQueue()
+ {
+ queueWindow.Show();
+ }
+
private void procMonitor(object state)
{
// Make sure we are not already encoding and if we are then display an error.
|