コード例 #1
0
ファイル: FieldBehavior.cs プロジェクト: CodeAsm/open-sauce
		/// <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(); }
コード例 #2
0
ファイル: FieldTextBox.cs プロジェクト: CodeAsm/open-sauce
		/// <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); }
コード例 #3
0
ファイル: FieldTextBox.cs プロジェクト: CodeAsm/open-sauce
		/// <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) { }
コード例 #4
0
ファイル: FieldTextBox.cs プロジェクト: CodeAsm/open-sauce
		/// <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); }