source: trunk/CrypPlugins/P2PEditor/Worker/JobListUpdateWorker.cs @ 1917

Last change on this file since 1917 was 1917, checked in by Paul Lelgemann, 11 years ago

o KeySearcher: fixed "+unendlich years" as estimated finish date display bug
o P2PEditor: fixed behavior of new button without p2p connection and participate button with not job selected
o P2PEditor: minor refactoring, removed unused code and classes

File size: 694 bytes
Line 
1using System.Collections.Generic;
2using System.ComponentModel;
3using Cryptool.P2PEditor.Distributed;
4
5namespace Cryptool.P2PEditor.Worker
6{
7    public class JobListUpdateWorker : BackgroundWorker
8    {
9        private readonly JobListManager jobListManager;
10        public ICollection<DistributedJob> RefreshedJobList;
11
12        public JobListUpdateWorker(JobListManager jobListManager)
13        {
14            this.jobListManager = jobListManager;
15
16            DoWork += JobCreationWorkerDoWork;
17        }
18
19        private void JobCreationWorkerDoWork(object sender, DoWorkEventArgs e)
20        {
21            RefreshedJobList = jobListManager.JobList();
22        }
23    }
24}
Note: See TracBrowser for help on using the repository browser.