GetAllJobs() public method

public GetAllJobs ( ) : IList
return IList
Ejemplo 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();
            }
        }
Ejemplo 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();
        }