Ejemplo n.º 1
0
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A ItemType object</param>
 /// <remarks>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void SetType( ItemType val )
 {
     SetField( LibraryDTD.ITEMINFO_TYPE, val );
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">A Type</param>
 ///<param name="title">The title of the item being referenced by this Transaction.</param>
 ///
 public ItemInfo( ItemType type, string title )
     : base(LibraryDTD.ITEMINFO)
 {
     this.SetType( type );
     this.Title = title;
 }
Ejemplo n.º 3
0
 ///<summary>Sets the value of the <c>&lt;ItemInfo&gt;</c> element.</summary>
 /// <param name="Type">A Type</param>
 /// <param name="Title">The title of the item being referenced by this Transaction.</param>
 ///<remarks>
 /// <para>This form of <c>setItemInfo</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>ItemInfo</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void SetItemInfo( ItemType Type, string Title )
 {
     RemoveChild( LibraryDTD.TRANSACTION_ITEMINFO);
     AddChild( LibraryDTD.TRANSACTION_ITEMINFO, new ItemInfo( Type, Title ) );
 }