public CurrencyTextBox() : base(null) { m_behavior = new CurrencyBehavior(this); TextAlign = System.Windows.Forms.HorizontalAlignment.Right; }
internal CurrencyTextBox(CurrencyBehavior behavior) : base(behavior) { TextAlign = System.Windows.Forms.HorizontalAlignment.Right; }
/// <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) { }