Example #1
0
		/// <summary>
		///   Initializes a new instance of the CurrencyTextBox class by explicitly assigning its Behavior field. </summary>
		/// <param name="behavior">
		///   The <see cref="CurrencyBehavior" /> object to associate the textbox with. </param>
		public CurrencyTextBox(CurrencyBehavior behavior) :
			base(behavior)
		{
		}
Example #2
0
		/// <summary>
		///   Initializes a new instance of the CurrencyBehavior class by copying it from 
		///   another CurrencyBehavior object. </summary>
		/// <param name="behavior">
		///   The CurrencyBehavior object to copied (and then disposed of).  It must not be null. </param>
		/// <exception cref="ArgumentNullException">behavior is null. </exception>
		/// <remarks>
		///   After the behavior.TextBox object is copied, Dispose is called on the behavior parameter. </remarks>
		public CurrencyBehavior(CurrencyBehavior behavior) :
			base(behavior)
		{
		}
Example #3
0
		/// <summary>
		///   Initializes a new instance of the CurrencyTextBox class by assigning its Behavior field
		///   to an instance of <see cref="CurrencyBehavior" />. </summary>
		public CurrencyTextBox() :
			base(null)
		{
			m_behavior = new CurrencyBehavior(this);
		}