Ejemplo n.º 1
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">This attribute specifies what type of alert message this is.</param>
 ///<param name="value">Gets or sets the content value of the &amp;lt;AlertMessage&amp;gt; element</param>
 ///
 public AlertMessage( AlertMessageType type, string value )
     : base(StudentDTD.ALERTMESSAGE)
 {
     this.SetType( type );
     this.Value = value;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A AlertMessageType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "This attribute specifies what type of alert message this is."</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void SetType( AlertMessageType val )
 {
     SetField( StudentDTD.ALERTMESSAGE_TYPE, val );
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">This attribute specifies what type of alert message this is.</param>
 ///<param name="value">Gets or sets the content value of the &amp;lt;AlertMessage&amp;gt; element</param>
 ///
 public AlertMessage(AlertMessageType type, string value) : base(StudentDTD.ALERTMESSAGE)
 {
     this.SetType(type);
     this.Value = value;
 }
Ejemplo n.º 4
0
 ///<summary>Adds the value of the <c>&lt;AlertMessage&gt;</c> element.</summary>
 /// <param name="Type">This attribute specifies what type of alert message this is.</param>
 /// <param name="Value">Gets or sets the content value of the &amp;lt;AlertMessage&amp;gt; element</param>
 ///<remarks>
 /// <para>This form of <c>setAlertMessage</c> is provided as a convenience method
 /// that is functionally equivalent to the method <c>AddAlertMessage</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void AddAlertMessage(AlertMessageType Type, string Value)
 {
     AddChild(StudentDTD.ALERTMESSAGES_ALERTMESSAGE, new AlertMessage(Type, Value));
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A AlertMessageType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "This attribute specifies what type of alert message this is."</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void SetType(AlertMessageType val)
 {
     SetField(StudentDTD.ALERTMESSAGE_TYPE, val);
 }