Ejemplo n.º 1
0
 private void btnCreateJob_Click(object sender, EventArgs e)
 {
     if (txtDescription.Text == "" || txtDescription.TextLength <= 10)
     {
         MessageBox.Show("Please enter a description for the job");
     }
     else
     {
         jobLogic.createJob(new Job(id: null, contractID: selectedContract.Id, employeeID: "kamoTechnicianID", jobStatus: "Unassigned", jobDescription: txtDescription.Text, clientSatisfaction: 0.ToString(), jobCategory: cmbJobCategory.Text, jobType: cmbJobType.Text, pay: new Pay("", 600)));
         MessageBox.Show("Job added to contract!");
     }
 }