public void AddToQueue(Job job) { this.Show(); queue.Add(job); listBoxQueue.DataSource = null; listBoxQueue.DataSource = queue; if (!SecondaryThread.IsBusy) SecondaryThread.RunWorkerAsync(); }
public static void StartJob(Job job) { activeJob = job; jobThread = new Thread(new ThreadStart(RunJob)); jobThread.Start(); }
public static void RunJob(Job job) { activeJob = job; RunJob(); }
public static void AddJobToQueue(Job job) { frmProgress.AddToQueue(job); }