Пример #1
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="date">Date and time Incident took place (started to take place)</param>
 ///<param name="location">The Location the Incident (mostly) took place</param>
 ///<param name="confidentiality">May indicate the type of persons that this should be displayed to</param>
 ///
 public Incident( DateTime? date, Location location, Confidentiality confidentiality )
     : base(LearnerDTD.INCIDENT)
 {
     this.Date = date;
     this.SetLocation( location );
     this.SetConfidentiality( confidentiality );
 }
Пример #2
0
 /// <summary>
 /// Sets the value of the <c>&lt;Location&gt;</c> element.
 /// </summary>
 /// <param name="val">A Location object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "The Location the Incident (mostly) took place"</para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetLocation( Location val )
 {
     SetField( LearnerDTD.INCIDENT_LOCATION, val );
 }
 ///<summary>Sets the value of the <c>&lt;Incident&gt;</c> element.</summary>
 /// <param name="Date">Date and time Incident took place (started to take place)</param>
 /// <param name="Location">The Location the Incident (mostly) took place</param>
 /// <param name="Confidentiality">May indicate the type of persons that this should be displayed to</param>
 ///<remarks>
 /// <para>This form of <c>setIncident</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>Incident</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetIncident( DateTime? Date, Location Location, Confidentiality Confidentiality )
 {
     RemoveChild( LearnerDTD.LEARNERBEHAVIOURINCIDENT_INCIDENT);
     AddChild( LearnerDTD.LEARNERBEHAVIOURINCIDENT_INCIDENT, new Incident( Date, Location, Confidentiality ) );
 }