private void OnProgressChanged(JobEventArgs e) { var ev = ProgressChanged; if (ev != null) ev(null, e); }
private void OnJobRemoved(JobEventArgs e) { var ev = JobRemoved; if (ev != null) ev(null, e); }
private void _jobManager_JobRemoved(object sender, JobEventArgs e) { if (InvokeRequired) BeginInvoke(new Action<NiJob>(RemoveJob), e.Job); else RemoveJob(e.Job); }
private void _jobManager_ProgressChanged(object sender, JobEventArgs e) { if (!IsDisposed) { if (InvokeRequired) BeginInvoke(new Action<NiJob>(UpdateProgress), e.Job); else UpdateProgress(e.Job); } }
void _jobManager_JobAdded(object sender, JobEventArgs e) { if (InvokeRequired) BeginInvoke(new Action<NiJob>(AddJob), e.Job); else AddJob(e.Job); }