Ejemplo n.º 1
0
 /// <summary>
 /// Handles the <see cref="EnhancedMonthCalendar.DateClicked"/> event.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="e">
 /// A <see cref="DateEventArgs"/> that contains the event data.
 /// </param>
 private void EnhancedMonthCalendarDateClicked(object sender, DateEventArgs e)
 {
     if (this.ClosePickerOnDayClick)
     {
         this._buttonState = ComboButtonState.Normal;
         this.dropDown.Close(ToolStripDropDownCloseReason.ItemClicked);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Handles the <see cref="EnhancedMonthCalendar.InternalDateSelected"/> event.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="e">
 /// A <see cref="DateEventArgs"/> that contains the event data.
 /// </param>
 private void EnhancedMonthCalendarInternalDateSelected(object sender, DateEventArgs e)
 {
     this.dateTextBox.Date = e.Date;
 }
 /// <summary>
 /// Raises the <see cref="DateClicked"/> event.
 /// </summary>
 /// <param name="e">
 /// A <see cref="DateEventArgs"/> that contains the event data.
 /// </param>
 private void OnDateClicked(DateEventArgs e)
 {
     if (this.DateClicked != null)
     {
         this.DateClicked(this, e);
     }
 }