Exemplo 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;AlertMsg&amp;gt; element</param>
 ///
 public AlertMsg( AlertMsgType type, string value )
     : base(CommonDTD.ALERTMSG)
 {
     this.SetType( type );
     this.Value = value;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A AlertMsgType 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.5</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetType( AlertMsgType val )
 {
     SetField( CommonDTD.ALERTMSG_TYPE, val );
 }
Exemplo 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;AlertMsg&amp;gt; element</param>
 ///
 public AlertMsg(AlertMsgType type, string value) : base(CommonDTD.ALERTMSG)
 {
     this.SetType(type);
     this.Value = value;
 }
Exemplo n.º 4
0
 ///<summary>Adds the value of the <c>&lt;AlertMsg&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;AlertMsg&amp;gt; element</param>
 ///<remarks>
 /// <para>This form of <c>setAlertMsg</c> is provided as a convenience method
 /// that is functionally equivalent to the method <c>AddAlertMsg</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void AddAlertMsg(AlertMsgType Type, string Value)
 {
     AddChild(CommonDTD.ALERTMSGLIST_ALERTMSG, new AlertMsg(Type, Value));
 }
Exemplo n.º 5
0
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A AlertMsgType 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: 2.0</para>
 /// </remarks>
 public void SetType(AlertMsgType val)
 {
     SetField(CommonDTD.ALERTMSG_TYPE, val);
 }