GetAllJobs() public method

public GetAllJobs ( ) : IList
return IList
Esempio n. 1
0
        private void JobForm_Load(object sender, EventArgs e)
        {
            _jobManager = (NiJobManager)GetService(typeof(INiJobManager));

            _jobManager.JobAdded        += _jobManager_JobAdded;
            _jobManager.JobRemoved      += _jobManager_JobRemoved;
            _jobManager.ProgressChanged += _jobManager_ProgressChanged;

            ToggleDetails();

            foreach (var job in _jobManager.GetAllJobs())
            {
                AddJob(job);
            }

            if (_jobsSeen == 0)
            {
                Dispose();
            }
        }
Esempio n. 2
0
        private void JobForm_Load(object sender, EventArgs e)
        {
            _jobManager = (NiJobManager)GetService(typeof(INiJobManager));

            _jobManager.JobAdded += _jobManager_JobAdded;
            _jobManager.JobRemoved += _jobManager_JobRemoved;
            _jobManager.ProgressChanged += _jobManager_ProgressChanged;

            ToggleDetails();

            foreach (var job in _jobManager.GetAllJobs())
            {
                AddJob(job);
            }

            if (_jobsSeen == 0)
                Dispose();
        }