示例#1
0
 /// <summary>
 /// Sets the value of the <c>Units</c> attribute.
 /// </summary>
 /// <param name="val">A TimeUnits object</param>
 /// <remarks>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetUnits( TimeUnits val )
 {
     SetField( InstrDTD.TIMEDURATION_UNITS, val );
 }
示例#2
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="units">An Units</param>
 ///<param name="value">Gets or sets the content value of the &amp;lt;TimeDuration&amp;gt; element</param>
 ///
 public TimeDuration( TimeUnits units, decimal? value )
     : base(InstrDTD.TIMEDURATION)
 {
     this.SetUnits( units );
     this.Value = value;
 }
示例#3
0
 ///<summary>Sets the value of the <c>&lt;Duration&gt;</c> element.</summary>
 /// <param name="Units">An Units</param>
 /// <param name="Value">Gets or sets the content value of the &amp;lt;TimeDuration&amp;gt; element</param>
 ///<remarks>
 /// <para>This form of <c>setDuration</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>Duration</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetDuration( TimeUnits Units, decimal? Value )
 {
     RemoveChild( InstrDTD.ASSIGNMENTTIME_DURATION);
     AddChild( InstrDTD.ASSIGNMENTTIME_DURATION, new TimeDuration( Units, Value ) );
 }