- // Reset's the window to the default state.\r
- private void resetQueue()\r
- {\r
- try\r
- {\r
- if (this.InvokeRequired)\r
- {\r
- this.BeginInvoke(new ProgressUpdateHandler(resetQueue));\r
- return;\r
-\r
- }\r
- btn_stop.Visible = false;\r
- btn_encode.Enabled = true;\r
-\r
- lbl_source.Text = "-";\r
- lbl_dest.Text = "-";\r
- lbl_vEnc.Text = "-";\r
- lbl_aEnc.Text = "-";\r
- lbl_title.Text = "-";\r
- lbl_chapt.Text = "-";\r
-\r
- lbl_encodesPending.Text = list_queue.Items.Count + " encode(s) pending";\r
- }\r
- catch (Exception exc)\r
- {\r
- MessageBox.Show(exc.ToString());\r
- }\r
- }\r
-\r
- // Stop's the queue from continuing. \r
- private void btn_stop_Click(object sender, EventArgs e)\r
- {\r
- paused = true;\r
- btn_stop.Visible = false;\r
- btn_encode.Enabled = true;\r
- MessageBox.Show("No further items on the queue will start. The current encode process will continue until it is finished. \nClick 'Encode Video' when you wish to continue encoding the queue.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
- }\r
-\r
- // Updates the progress bar and progress label for a new status.\r
- private void updateUIElements()\r
- {\r
- try\r
- {\r
- if (this.InvokeRequired)\r
- {\r
- this.BeginInvoke(new ProgressUpdateHandler(updateUIElements));\r
- return;\r
- }\r
-\r
- redrawQueue();\r
- lbl_encodesPending.Text = list_queue.Items.Count + " encode(s) pending";\r
- }\r
- catch (Exception exc)\r
- {\r
- MessageBox.Show(exc.ToString());\r
- }\r