/// <summary> /// Initializes a new instance of the TimeTextBox class by explicitly assigning its Behavior field. </summary> /// <param name="behavior"> /// The <see cref="TimeBehavior" /> object to associate the textbox with. </param> public TimeTextBox(TimeBehavior behavior) : base(behavior) { }
/// <summary> /// Initializes a new instance of the TimeBehavior class by copying it from /// another TimeBehavior object. </summary> /// <param name="behavior"> /// The TimeBehavior 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 TimeBehavior(TimeBehavior behavior) : base(behavior) { m_rangeMin = behavior.m_rangeMin; m_rangeMax = behavior.m_rangeMax; m_separator = behavior.m_separator; m_am = behavior.m_am; m_pm = behavior.m_pm; m_ampmLength = behavior.m_ampmLength; m_hourStart = behavior.m_hourStart; }
/// <summary> /// Initializes a new instance of the TimeTextBox class by assigning its Behavior field /// to an instance of <see cref="TimeBehavior" />. </summary> public TimeTextBox() { m_behavior = new TimeBehavior(this); }