Пример #1
0
 private void assignJob_Click(object sender, EventArgs e)
 {
     if (queen.AssignWork(workerBeeJob.Text, (int)shifts.Value) == false)
     {
         MessageBox.Show("No workers are available to do the job '" + workerBeeJob.Text + "'", "The queen bee says...");
     }
     else
     {
         MessageBox.Show("The job '" + workerBeeJob.Text + "' will be done in " + shifts.Value + " shifts", "The queen bee says...");
     }
 }
Пример #2
0
 private void btn_assignJob_Click(object sender, System.EventArgs e)
 {
     if (queen.AssignWork(comBx_workerBeeJob.Text, (int)numUpd_shifts.Value) == false)
     {
         MessageBox.Show("Для этого задания рабочих нет ‘" + comBx_workerBeeJob.Text + "’", "Матка говорит...");
     }
     else
     {
         MessageBox.Show("Задание ‘" + comBx_workerBeeJob.Text + "’ будет закончено через " + numUpd_shifts.Value + " смен", "Матка говорит...");
     }
 }
Пример #3
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (queen.AssignWork(workerBeeJob.Text, (int)shifts.Value))
     {
         MessageBox.Show("The job " + workerBeeJob.Text + " will be done in " + (int)shifts.Value + " shifts.");
     }
     else
     {
         MessageBox.Show("There are no bees available to do that job");
     }
 }