Esempio n. 1
0
 private void FormMain_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (WorkerAgentObject.IsListening)
     {
         WorkerAgentObject.Stop();
     }
 }
Esempio n. 2
0
 private void exitToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (WorkerAgentObject.IsListening)
     {
         WorkerAgentObject.Stop();
     }
     Application.Exit();
 }
Esempio n. 3
0
 private void stopListiningForJobsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     WorkerAgentObject.Stop();
 }