Ejemplo n.º 1
0
 private void btnrjReassignJob_Click(object sender, EventArgs e)
 {
     if (txtrjName.TextLength != 0 && txtrjSurname.TextLength != 0)
     {
         request.WorkRequirement = workRequest;
         request.WorkDuration    = workDuration;
         request.Name            = txtrjName.Text;
         request.Surname         = txtrjSurname.Text;
         if (request.AssignRequest() == true)
         {
             Message += new Display.myDelegate(Display.Success);
             Message.Invoke();
         }
         else
         {
             Message += new Display.myDelegate(Display.Failure);
             Message.Invoke();
         }
     }
     else
     {
         Message += new Display.myDelegate(Display.Error);
         Message.Invoke();
     }
 }