Example #1
0
 private void Form1_Closing(object sender, CancelEventArgs e)
 {
     myJobManager.UserResultAvailable -= new CogJobManager.CogUserResultAvailableEventHandler(myJobManager_UserResultAvailable);
     cogRecordDisplay1.Dispose();
     // Be sure to shudown the CogJobManager!!
     myJobManager.Shutdown();
 }
Example #2
0
 private void Form1_Closing(object sender, CancelEventArgs e)
 {
     timer1.Stop();
     cogRecordDisplay1.Dispose();
     // Be sure to shudown the CogJobManager!
     myJobManager.Shutdown();
     thread1.Abort();
 }