/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="dayId">A DayId</param> ///<param name="dayTitle">A DayTitle</param> ///<param name="timeTablePeriodList">A TimeTablePeriodList</param> /// public TimeTableDay( string dayId, string dayTitle, TimeTablePeriod timeTablePeriodList ) : base(SchoolDTD.TIMETABLEDAY) { this.DayId = dayId; this.DayTitle = dayTitle; this.TimeTablePeriodList = new TimeTablePeriodList( timeTablePeriodList ); }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="dayId">A DayId</param> ///<param name="dayTitle">A DayTitle</param> ///<param name="timeTablePeriodList">A TimeTablePeriodList</param> /// public TimeTableDay(string dayId, string dayTitle, TimeTablePeriod timeTablePeriodList) : base(SchoolDTD.TIMETABLEDAY) { this.DayId = dayId; this.DayTitle = dayTitle; this.TimeTablePeriodList = new TimeTablePeriodList(timeTablePeriodList); }
///<summary>Sets the value of the <c><TimeTablePeriodList></c> element.</summary> /// <param name="TimeTablePeriod">A TimeTablePeriod</param> ///<remarks> /// <para>This form of <c>setTimeTablePeriodList</c> is provided as a convenience method /// that is functionally equivalent to the <c>TimeTablePeriodList</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.3</para> /// </remarks> public void SetTimeTablePeriodList(TimeTablePeriod TimeTablePeriod) { RemoveChild(SchoolDTD.TIMETABLEDAY_TIMETABLEPERIODLIST); AddChild(SchoolDTD.TIMETABLEDAY_TIMETABLEPERIODLIST, new TimeTablePeriodList(TimeTablePeriod)); }
///<summary>Sets the value of the <c><TimeTablePeriodList></c> element.</summary> /// <param name="TimeTablePeriod">A TimeTablePeriod</param> ///<remarks> /// <para>This form of <c>setTimeTablePeriodList</c> is provided as a convenience method /// that is functionally equivalent to the <c>TimeTablePeriodList</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.3</para> /// </remarks> public void SetTimeTablePeriodList( TimeTablePeriod TimeTablePeriod ) { RemoveChild( SchoolDTD.TIMETABLEDAY_TIMETABLEPERIODLIST); AddChild( SchoolDTD.TIMETABLEDAY_TIMETABLEPERIODLIST, new TimeTablePeriodList( TimeTablePeriod ) ); }
///<summary>Adds the value of the <c><TimeTableDay></c> element.</summary> /// <param name="DayId">A DayId</param> /// <param name="DayTitle">A DayTitle</param> /// <param name="TimeTablePeriodList">A TimeTablePeriodList</param> ///<remarks> /// <para>This form of <c>setTimeTableDay</c> is provided as a convenience method /// that is functionally equivalent to the method <c>AddTimeTableDay</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.3</para> /// </remarks> public void AddTimeTableDay(string DayId, string DayTitle, TimeTablePeriod TimeTablePeriodList) { AddChild(SchoolDTD.TIMETABLEDAYLIST_TIMETABLEDAY, new TimeTableDay(DayId, DayTitle, TimeTablePeriodList)); }