示例#1
0
 public Hairdresser(string name, string email)
 {
     Name         = name;
     Email        = email;
     Treatments   = new List <Treatment>();
     OpeningHours = new OpeningHours();
     Appointments = new List <Appointment>();
     //OpeningHours.WorkDays = new List<WorkDay>();
     OpeningHours.FillHours();
 }
示例#2
0
        public Hairdresser(string name, string email, IList <Treatment> treatments, IList <WorkDay> workDays) : this(name, email)
        {
            //Name = name;
            //Email = email;
            Treatments   = treatments;
            OpeningHours = new OpeningHours {
                WorkDays = workDays
            };
            //Appointments = new List<Appointment>();

            OpeningHours.WorkDays = workDays;

            //List<Time> hoursMonday = new List<Time>();
            //hoursMonday.Add(new Time(7, 30, 0));
            //hoursMonday.Add(new Time(12, 30, 0));
            //hoursMonday.Add(new Time(13, 30, 0));
            //hoursMonday.Add(new Time(18, 30, 0));

            //OpeningHours.EditHoursOfDay(DayOfWeek.Monday, hoursMonday);
        }