Inheritance: System.EventArgs
示例#1
0
 private void OnProgressChanged(JobEventArgs e)
 {
     var ev = ProgressChanged;
     if (ev != null)
         ev(null, e);
 }
示例#2
0
 private void OnJobRemoved(JobEventArgs e)
 {
     var ev = JobRemoved;
     if (ev != null)
         ev(null, e);
 }
示例#3
0
文件: JobForm.cs 项目: netide/netide
 private void _jobManager_JobRemoved(object sender, JobEventArgs e)
 {
     if (InvokeRequired)
         BeginInvoke(new Action<NiJob>(RemoveJob), e.Job);
     else
         RemoveJob(e.Job);
 }
示例#4
0
文件: JobForm.cs 项目: netide/netide
 private void _jobManager_ProgressChanged(object sender, JobEventArgs e)
 {
     if (!IsDisposed)
     {
         if (InvokeRequired)
             BeginInvoke(new Action<NiJob>(UpdateProgress), e.Job);
         else
             UpdateProgress(e.Job);
     }
 }
示例#5
0
文件: JobForm.cs 项目: netide/netide
 void _jobManager_JobAdded(object sender, JobEventArgs e)
 {
     if (InvokeRequired)
         BeginInvoke(new Action<NiJob>(AddJob), e.Job);
     else
         AddJob(e.Job);
 }