Пример #1
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="start">Lowest year in range.</param>
 ///<param name="end">Highest year in range</param>
 ///
 public AcademicYearRange( Start start, End end )
     : base(SchoolDTD.ACADEMICYEARRANGE)
 {
     this.Start = start;
     this.End = end;
 }
Пример #2
0
 ///<summary>Sets the value of the <c>&lt;AcademicYearRange&gt;</c> element.</summary>
 /// <param name="Start">Lowest year in range.</param>
 /// <param name="End">Highest year in range</param>
 ///<remarks>
 /// <para>This form of <c>setAcademicYearRange</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>AcademicYearRange</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetAcademicYearRange( Start Start, End End )
 {
     RemoveChild( SchoolDTD.TIMETABLESUBJECT_ACADEMICYEARRANGE);
     AddChild( SchoolDTD.TIMETABLESUBJECT_ACADEMICYEARRANGE, new AcademicYearRange( Start, End ) );
 }