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

Last change on this file since 2441 was 2441, checked in by Sven Rech, 11 years ago

catched Exception in P2PEditor

File size: 813 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            try
22            {
23                RefreshedJobList = jobListManager.JobList();
24            }
25            catch (System.Exception)
26            {
27            }
28        }
29    }
30}
Note: See TracBrowser for help on using the repository browser.