Пример #1
0
 /// <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 );
 }
Пример #2
0
 /// <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);
 }
Пример #3
0
 ///<summary>Sets the value of the <c>&lt;TimeTablePeriodList&gt;</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));
 }
Пример #4
0
 ///<summary>Sets the value of the <c>&lt;TimeTablePeriodList&gt;</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 ) );
 }
Пример #5
0
 ///<summary>Adds the value of the <c>&lt;TimeTableDay&gt;</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));
 }