Exemplo n.º 1
0
		/// <summary>
		/// Initializes a new instance of the IntegerBehavior class by copying it from 
		/// another IntegerBehavior object. </summary>
		/// <param name="behavior">
		/// The IntegerBehavior 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 IntegerBehavior(IntegerBehavior behavior) : base(behavior) { SetDefaultRange(); }
Exemplo n.º 2
0
		/// <summary>
		/// Initializes a new instance of the IntegerTextBox class by assigning its Behavior field 
		/// to an instance of <see cref="IntegerBehavior" /> and setting the maximum number of digits 
		/// allowed left of the decimal point. </summary>
		/// <param name="maxWholeDigits">
		/// The maximum number of digits allowed left of the decimal point.
		/// If it is less than 1, it is set to 1. </param>
		public IntegerTextBox(int maxWholeDigits) : base(null) { behavior = new IntegerBehavior(this, maxWholeDigits); }
Exemplo n.º 3
0
		/// <summary>
		/// Initializes a new instance of the IntegerTextBox class by explicitly assigning its Behavior field. </summary>
		/// <param name="behavior">
		/// The <see cref="IntegerBehavior" /> object to associate the textbox with. </param>
		public IntegerTextBox(IntegerBehavior behavior) : base(behavior) { }
Exemplo n.º 4
0
		/// <summary>
		/// Initializes a new instance of the IntegerTextBox class by assigning its Behavior field
		/// to an instance of <see cref="IntegerBehavior" />. </summary>
		public IntegerTextBox() : base(null) { behavior = new IntegerBehavior(this); }