Beispiel #1
0
 /// <summary>
 ///   Initializes a new instance of the NumericTextBox class by explicitly assigning its Behavior field. </summary>
 /// <param name="behavior">
 ///   The <see cref="NumericBehavior" /> object to associate the textbox with. </param>
 public NumericTextBox(NumericBehavior behavior)
     :
     base(behavior)
 {
     //add by I.TYOU 20140114 フォーカスが出るとTextをフォーマットする
     this.Validating += new CancelEventHandler(NumericTextBox_Validating);
 }
Beispiel #2
0
 /// <summary>
 ///   Initializes a new instance of the NumericTextBox class by assigning its Behavior field
 ///   to an instance of <see cref="NumericBehavior" />. </summary>
 public NumericTextBox()
 {
     this.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;    //add by I.TYOU 20141020
     m_behavior     = new NumericBehavior(this);
     //add by I.TYOU 20140114 フォーカスが出るとTextをフォーマットする
     this.Validating += new CancelEventHandler(NumericTextBox_Validating);
 }
Beispiel #3
0
 public NumericTextBox(NumericBehavior behavior)
     :
     base(behavior)
 {
 }
Beispiel #4
0
 public NumericTextBox(int maxWholeDigits, int maxDecimalPlaces)
 {
     m_behavior = new NumericBehavior(this, maxWholeDigits, maxDecimalPlaces);
 }
Beispiel #5
0
 public NumericTextBox()
 {
     m_behavior = new NumericBehavior(this);
 }
Beispiel #6
0
 /// <summary>
 ///   Initializes a new instance of the NumericTextBox class by assigning its Behavior field
 ///   to an instance of <see cref="NumericBehavior" /> and setting the maximum number of digits
 ///   allowed left and right 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>
 /// <param name="maxDecimalPlaces">
 ///   The maximum number of digits allowed right of the decimal point.
 ///   If it is less than 0, it is set to 0. </param>
 public NumericTextBox(int maxWholeDigits, int maxDecimalPlaces)
 {
     m_behavior = new NumericBehavior(this, maxWholeDigits, maxDecimalPlaces);
     //add by I.TYOU 20140114 フォーカスが出るとTextをフォーマットする
     this.Validating += new CancelEventHandler(NumericTextBox_Validating);
 }