void control_CellClick(object sender, DayCellClickEventArgs e) { if (MonthDayClicked != null) { // fire event if here were no focus before or not focused day clicked MonthDayClicked(this, e); } }
private void control_MonthDayClicked(object sender, DayCellClickEventArgs e) { FocusDate = e.NewDate; if (e.Button == MouseButtons.Right) { ShowDayContextMenu(); } }