예제 #1
0
        public void rent(int days)
        {
            DateTime now = DateTime.Now;

            AvailableOn = now.AddMinutes(days);
            Available   = false;
            CarHireClass.saveChanges(this);
            CarHireClass.updateLists();
        }
예제 #2
0
 public void hire(DateTime start, DateTime end)
 {
     hiredDates.Add(new Hired(start, end));
     CarHireClass.saveChanges(this);
     sortHiredList();
 }