source: trunk/CrypPlugins/P2PEditor/Worker/JobCreationWorker.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: 742 bytes
Line 
1using System.ComponentModel;
2using Cryptool.P2PEditor.Distributed;
3
4namespace Cryptool.P2PEditor.Worker
5{
6    public class JobCreationWorker : BackgroundWorker
7    {
8        private readonly JobListManager jobListManager;
9        private readonly DistributedJob jobToDistribute;
10
11        public JobCreationWorker(JobListManager jobListManager, DistributedJob jobToDistribute)
12        {
13            this.jobListManager = jobListManager;
14            this.jobToDistribute = jobToDistribute;
15
16            DoWork += JobCreationWorkerDoWork;
17        }
18
19        private void JobCreationWorkerDoWork(object sender, DoWorkEventArgs e)
20        {
21            jobListManager.AddDistributedJob(jobToDistribute);
22        }
23    }
24}
Note: See TracBrowser for help on using the repository browser.