Пример #1
0
 ///<summary>Sets the value of the <c>&lt;Employees&gt;</c> element.</summary>
 /// <param name="Employee">An Employee</param>
 ///<remarks>
 /// <para>This form of <c>setEmployees</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>Employees</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetEmployees( Employee Employee )
 {
     RemoveChild( LearnerDTD.PARTICIPANTS_EMPLOYEES);
     AddChild( LearnerDTD.PARTICIPANTS_EMPLOYEES, new Employees( Employee ) );
 }
Пример #2
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="employees">An Employees</param>
 ///<param name="learners">A Learners</param>
 ///
 public Participants( Employee employees, Learner learners )
     : base(LearnerDTD.PARTICIPANTS)
 {
     this.Employees =  new Employees( employees );
     this.Learners =  new Learners( learners );
 }
 ///<summary>Sets the value of the <c>&lt;Participants&gt;</c> element.</summary>
 /// <param name="Employees">An Employees</param>
 /// <param name="Learners">A Learners</param>
 ///<remarks>
 /// <para>This form of <c>setParticipants</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>Participants</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetParticipants( Employee Employees, Learner Learners )
 {
     RemoveChild( LearnerDTD.LEARNERBEHAVIOURINCIDENT_PARTICIPANTS);
     AddChild( LearnerDTD.LEARNERBEHAVIOURINCIDENT_PARTICIPANTS, new Participants( Employees, Learners ) );
 }