コード例 #1
0
 public ScheduleDays(int id, Schedule schedule, Days days)
 {
     this.ScheduleDayId = id;
     this.schedule      = schedule;
     this.days          = days;
 }
コード例 #2
0
 public void ChangeDayInSchedule(int id, int newdayid)
 {
     ScheduleDaysList.Find(item => item.ScheduleDayId == id).days = Days.GetDayById(newdayid);
 }
コード例 #3
0
        public ScheduleDays CreateScheduleDay(int id, int scheduleid, int dayid)
        {
            ScheduleDays scheduleday = new ScheduleDays(id, Schedule.GetScheduleById(scheduleid), Days.GetDayById(dayid));

            ScheduleDaysList.Add(scheduleday);
            return(scheduleday);
        }