コード例 #1
0
 public bool assignDriver(DeliveryEmployee em)
 {
     if (Driverless)
     {
         driver = em;
         return true;
     }
     return false;
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 public void removeDriver(DeliveryEmployee em)
 {
     if (driver.Equals(em))
         driver = null;
 }