示例#1
0
 public Business()
 {
     Titel = "Dummy Titel";
     Description = "Dummy Description";
     Events = new List<BusinessEvent>();
     Schedule = new Dictionary<DayOfWeek,BusinessSchedule>();           
     var days = Enum.GetValues(typeof(DayOfWeek));
     foreach(DayOfWeek day in days)
     {
         Schedule[day] = new BusinessSchedule();
     }
     Contact = new BusinessContact();
 }
示例#2
0
 public void SetBusinessHourOn(DayOfWeek day, BusinessSchedule shedule)
 {
     Schedule[day] = shedule;
 }