- // Start the encode\r
- try\r
- {\r
- if (list_queue.Items.Count != 0)\r
- {\r
- // Setup or reset some values\r
- btn_stop.Visible = true;\r
- progressBar.Value = 0;\r
- lbl_progressValue.Text = "0 %";\r
- progressBar.Step = 100 / list_queue.Items.Count;\r
- progressBar.Update();\r
- //ThreadPool.QueueUserWorkItem(startProc);\r
- // Testing a new way of launching a thread. Hopefully will fix a random freeze up of the main thread.\r
- Thread theQ = new Thread(startProc);\r
- theQ.Start();\r
- }\r
- }\r
- catch (Exception exc)\r
- {\r
- MessageBox.Show(exc.ToString());\r
- }\r
+ /// <summary>\r
+ /// Initializes the Queue list with the Arraylist from the Queue class\r
+ /// </summary>\r
+ public void SetQueue()\r
+ {\r
+ UpdateUIElements();\r