Example #1
0
        // add availability to this person
        public void AddAvailabilitySlot(string day, string availability)
        {
            // create a new shift object
            ShiftOld newAvailability = new ShiftOld();

            newAvailability.shiftName = "Availble";

            // add the start and end time
            newAvailability.startHour = availability.Split('-')[0];
            newAvailability.endHour   = availability.Split('-')[1];

            // add to data structure
            _availabilities[day].Add(newAvailability);
        }
Example #2
0
 public void AssignShift(ShiftOld newShift)
 {
 }