Exemplo n.º 1
0
 public bool assignDriver(DeliveryEmployee em)
 {
     if (Driverless)
     {
         driver = em;
         return true;
     }
     return false;
 }
 public bool addDeliveryEmployee(string firstName, string middleName, string lastName, string id, string plainTextPassword, Route r)
 {
     DeliveryEmployee a = new DeliveryEmployee(firstName, middleName, lastName, id, plainTextPassword);
     a.CurrentRoute = r;
     return addEmployee(a);
 }
Exemplo n.º 3
0
 public void removeDriver(DeliveryEmployee em)
 {
     if (driver.Equals(em))
         driver = null;
 }