예제 #1
0
 /// <summary>
 ///   Initializes a new instance of the NumericBehavior class by copying it from
 ///   another NumericBehavior object. </summary>
 /// <param name="behavior">
 ///   The NumericBehavior 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 NumericBehavior(NumericBehavior behavior)
     :
     base(behavior)
 {
     m_maxWholeDigits   = behavior.m_maxWholeDigits;
     m_maxDecimalPlaces = behavior.m_maxDecimalPlaces;
     m_digitsInGroup    = behavior.m_digitsInGroup;
     m_negativeSign     = behavior.m_negativeSign;
     m_decimalPoint     = behavior.m_decimalPoint;
     m_groupSeparator   = behavior.m_groupSeparator;
     m_prefix           = behavior.m_prefix;
     m_rangeMin         = behavior.m_rangeMin;
     m_rangeMax         = behavior.m_rangeMax;
 }
예제 #2
0
 /// <summary>
 ///   Initializes a new instance of the NumericBehavior class by copying it from
 ///   another NumericBehavior object. </summary>
 /// <param name="behavior">
 ///   The NumericBehavior 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 NumericBehavior(NumericBehavior behavior)
     :
     base(behavior)
 {
     _maxWholeDigits   = behavior._maxWholeDigits;
     _maxDecimalPlaces = behavior._maxDecimalPlaces;
     _digitsInGroup    = behavior._digitsInGroup;
     _negativeSign     = behavior._negativeSign;
     _decimalPoint     = behavior._decimalPoint;
     _groupSeparator   = behavior._groupSeparator;
     _prefix           = behavior._prefix;
     _rangeMin         = behavior._rangeMin;
     _rangeMax         = behavior._rangeMax;
 }
예제 #3
0
 public NumericTextBox(NumericBehavior behavior)
     :
     base(behavior)
 {
     ImeMode = System.Windows.Forms.ImeMode.Off;
 }
예제 #4
0
 public NumericTextBox(int maxWholeDigits, int maxDecimalPlaces)
 {
     ImeMode    = System.Windows.Forms.ImeMode.Off;
     m_behavior = new NumericBehavior(this, maxWholeDigits, maxDecimalPlaces);
 }
예제 #5
0
 public NumericTextBox()
 {
     ImeMode    = System.Windows.Forms.ImeMode.Off;
     m_behavior = new NumericBehavior(this);
 }