Exemple #1
0
 /// <summary>
 /// Handles the <see cref="MonthCalendar.DateClicked"/> event.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">A <see cref="DateEventArgs"/> that contains the event data.</param>
 private void MonthCalendarDateClicked(object sender, DateEventArgs e)
 {
    if (this.ClosePickerOnDayClick)
    {
       this.buttonState = ComboButtonState.Normal;
       this.dropDown.Close(ToolStripDropDownCloseReason.ItemClicked);
    }
 }
Exemple #2
0
 /// <summary>
 /// Raises the <see cref="DateClicked"/> event.
 /// </summary>
 /// <param name="e">A <see cref="DateEventArgs"/> that contains the event data.</param>
 protected virtual void OnDateClicked(DateEventArgs e)
 {
    if (this.DateClicked != null)
    {
       this.DateClicked(this, e);
    }
 }
Exemple #3
0
 /// <summary>
 /// Handles the <see cref="MonthCalendar.InternalDateSelected"/> event.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">A <see cref="DateEventArgs"/> that contains the event data.</param>
 private void MonthCalendarInternalDateSelected(object sender, DateEventArgs e)
 {
    this.dateTextBox.Date = e.Date;
 }