Example #1
0
 /// <summary>
 ///   Initializes a new instance of the MaskedBehavior class by copying it from
 ///   another MaskedBehavior object. </summary>
 /// <param name="behavior">
 ///   The MaskedBehavior 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 MaskBehavior(MaskBehavior behavior)
     :
     base(behavior)
 {
     m_mask    = behavior.m_mask;
     m_symbols = behavior.m_symbols;
 }
Example #2
0
 /// <summary>
 ///   Initializes a new instance of the MaskedBehavior class by copying it from
 ///   another MaskedBehavior object. </summary>
 /// <param name="behavior">
 ///   The MaskedBehavior 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 MaskBehavior(MaskBehavior behavior)
     :
     base(behavior)
 {
     _mask    = behavior._mask;
     _symbols = behavior._symbols;
 }
Example #3
0
 public MaskTextBox(MaskBehavior behavior)
     :
     base(behavior)
 {
 }
Example #4
0
 public MaskTextBox(string mask)
 {
     _behavior = new MaskBehavior(this, mask);
 }
Example #5
0
 public MaskTextBox()
 {
     _behavior = new MaskBehavior(this);
 }