예제 #1
0
파일: FormMain.cs 프로젝트: mehrta/Quax
 private void FormMain_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (WorkerAgentObject.IsListening)
     {
         WorkerAgentObject.Stop();
     }
 }
예제 #2
0
파일: FormMain.cs 프로젝트: mehrta/Quax
 private void exitToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (WorkerAgentObject.IsListening)
     {
         WorkerAgentObject.Stop();
     }
     Application.Exit();
 }
예제 #3
0
파일: FormMain.cs 프로젝트: mehrta/Quax
        private void removePendingJobsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DialogResult result = MessageBox.Show("All jobs in the jobs queue that are waiting for execution will remove from the queue, are you sure?", "Remove pending jobs from jobs queue", MessageBoxButtons.YesNo);

            if (result == System.Windows.Forms.DialogResult.Yes)
            {
                WorkerAgentObject.ClearJobsQueue();
            }
        }
예제 #4
0
파일: FormMain.cs 프로젝트: mehrta/Quax
 private void stopListiningForJobsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     WorkerAgentObject.Stop();
 }