Esempio n. 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);
    }
 }
Esempio n. 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);
    }
 }
Esempio n. 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;
 }