/// <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 ); }
/// <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; }
///<summary>Sets the value of the <c><ItemInfo></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 ) ); }