コード例 #1
0
 public DateTimeTextBox()
     :
     base(null)
 {
     m_behavior = new DateTimeBehavior(this);
 }
コード例 #2
0
 public DateTimeTextBox(DateTimeBehavior behavior)
     :
     base(behavior)
 {
 }
コード例 #3
0
 /// <summary>
 ///   Initializes a new instance of the DateTimeBehavior class by copying it from
 ///   another DateTimeBehavior object. </summary>
 /// <param name="behavior">
 ///   The DateTimeBehavior 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 DateTimeBehavior(DateTimeBehavior behavior)
     :
     base(behavior)
 {
     m_dateBehavior = new DateBehavior(m_textBox, false);  // does not add the event handlers
 }