Пример #1
0
        public void AddToQueue(Job job)
        {
            this.Show();
            queue.Add(job);
            listBoxQueue.DataSource = null;
            listBoxQueue.DataSource = queue;

            if (!SecondaryThread.IsBusy)
                SecondaryThread.RunWorkerAsync();
        }
Пример #2
0
 public static void StartJob(Job job)
 {
     activeJob = job;
     jobThread = new Thread(new ThreadStart(RunJob));
     jobThread.Start();
 }
Пример #3
0
 public static void RunJob(Job job)
 {
     activeJob = job;
     RunJob();
 }
Пример #4
0
 public static void AddJobToQueue(Job job)
 {
     frmProgress.AddToQueue(job);
 }