Exemplo n.º 1
0
        public void StartAll(bool restartStopping)
        {
            // check for missing components
            if (UpdateWindow.isComponentMissing())
            {
                mainForm.startUpdateCheck();
                return;
            }

            if (workers.Values.Count == 0)
            {
                NewWorker(freeWorkerName(), false);
            }

            foreach (JobWorker w in workers.Values)
            {
                if (!w.IsEncoding)
                {
                    w.StartEncoding(false);
                }
                else if (restartStopping && w.Status == JobWorkerStatus.Stopping)
                {
                    w.SetRunning();
                }
            }
            refresh();
        }