private void m_footer_Click(object sender, ClickEventArgs e) { if (this.FooterClick!=null) this.FooterClick(this,e); }
private void m_header_DoubleClick(object sender, ClickEventArgs e) { if (this.HeaderDoubleClick!=null) this.HeaderDoubleClick(this,e); }
/// <summary> /// Handles the HeaderClick event of the monthCalendar control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="ClickEventArgs"/> instance containing the event data.</param> private void MonthCalendar_HeaderClick(object sender, ClickEventArgs e) { Point location = this.monthCalendar.PointToClient(Control.MousePosition); if (this.IsCursorInHeaderLabel(location)) { this.monthCalendar.SelectDate(DateTime.Today); } }