コード例 #1
0
 ///<summary>Sets the value of the <c>&lt;AddressList&gt;</c> element.</summary>
 /// <param name="PickupOrDropoff">Specifies if this is a pickup or dropoff address</param>
 /// <param name="DayOfWeek">The days of the week for which the pickup or dropoff address is valid</param>
 /// <param name="Address">The street address</param>
 ///<remarks>
 /// <para>This form of <c>setAddressList</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>AddressList</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void SetAddressList(PickupOrDropoff PickupOrDropoff, string DayOfWeek, Address Address)
 {
     RemoveChild(StudentDTD.STUDENTPERSONAL_ADDRESSLIST);
     AddChild(StudentDTD.STUDENTPERSONAL_ADDRESSLIST, new StudentAddressList(PickupOrDropoff, DayOfWeek, Address));
 }
コード例 #2
0
 /// <summary>
 /// Adds a StudentAddressList instance for interoperating with multiple addresses in SIF Version 1.x
 /// </summary>
 /// <remarks>
 /// <para>In SIF 2.0, the StudentAddressList object is not a repeatable element. Use this method of adding
 ///  student address only if you are creating an object for use in SIF 1.x
 /// </para>
 /// <para>In SIF 2.0, or if you are only dealing with a single Student address, you can add the address
 /// to the StudentPersonal object by calling the <see cref="StudentAddressList#Add"/> method
 /// </remarks>
 /// <param name="pickupOrDropoff">Specifies if this is a pickup or dropoff address</param>
 /// <param name="dayOfWeek"> The days of the week for which the pickup or dropoff address is valid</param>
 /// <param name="address">The street address</param>
 public void AddAddressList(PickupOrDropoff pickupOrDropoff, String dayOfWeek, Address address)
 {
     AddChild(StudentDTD.STUDENTPERSONAL_ADDRESSLIST, new StudentAddressList(pickupOrDropoff, dayOfWeek, address));
 }
コード例 #3
0
 ///<summary>Sets the value of the <c>&lt;AddressList&gt;</c> element.</summary>
 /// <param name="PickupOrDropoff">Specifies if this is a pickup or dropoff address</param>
 /// <param name="DayOfWeek">The days of the week for which the pickup or dropoff address is valid</param>
 /// <param name="Address">The street address</param>
 ///<remarks>
 /// <para>This form of <c>setAddressList</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>AddressList</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void SetAddressList( PickupOrDropoff PickupOrDropoff, string DayOfWeek, Address Address )
 {
     RemoveChild( StudentDTD.STUDENTPERSONAL_ADDRESSLIST);
     AddChild( StudentDTD.STUDENTPERSONAL_ADDRESSLIST, new StudentAddressList( PickupOrDropoff, DayOfWeek, Address ) );
 }
コード例 #4
0
 /// <summary>
 /// Adds a StudentAddressList instance for interoperating with multiple addresses in SIF Version 1.x
 /// </summary>
 /// <remarks>
 /// <para>In SIF 2.0, the StudentAddressList object is not a repeatable element. Use this method of adding
 ///  student address only if you are creating an object for use in SIF 1.x
 /// </para>
 /// <para>In SIF 2.0, or if you are only dealing with a single Student address, you can add the address 
 /// to the StudentPersonal object by calling the <see cref="StudentAddressList#Add"/> method
 /// </remarks>
 /// <param name="pickupOrDropoff">Specifies if this is a pickup or dropoff address</param>
 /// <param name="dayOfWeek"> The days of the week for which the pickup or dropoff address is valid</param>
 /// <param name="address">The street address</param>
 public void AddAddressList( PickupOrDropoff pickupOrDropoff, String dayOfWeek, Address address )
 {
     AddChild( StudentDTD.STUDENTPERSONAL_ADDRESSLIST, new StudentAddressList( pickupOrDropoff, dayOfWeek, address ) );
 }
コード例 #5
0
 /// <summary>
 /// Sets the value of the <c>PickupOrDropoff</c> attribute.
 /// </summary>
 /// <param name="val">A PickupOrDropoff object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "Specifies if this is a pickup or dropoff address"</para>
 /// <para>Version: 1.5r1</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void SetPickupOrDropoff(PickupOrDropoff val)
 {
     SetField(StudentDTD.STUDENTADDRESSLIST_PICKUPORDROPOFF, val);
 }
コード例 #6
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="pickupOrDropoff">Specifies if this is a pickup or dropoff address</param>
 ///<param name="dayOfWeek">The days of the week for which the pickup or dropoff address is valid</param>
 ///<param name="address">The street address</param>
 ///
 public StudentAddressList(PickupOrDropoff pickupOrDropoff, string dayOfWeek, Address address) : base(StudentDTD.STUDENTADDRESSLIST)
 {
     this.SetPickupOrDropoff(pickupOrDropoff);
     this.DayOfWeek = dayOfWeek;
     this.SafeAddChild(StudentDTD.STUDENTADDRESSLIST_ADDRESS, address);
 }