Exemple #1
0
 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);
     }
 }
Exemple #2
0
 private void control_MonthDayClicked(object sender, DayCellClickEventArgs e)
 {
     FocusDate = e.NewDate;
     if (e.Button == MouseButtons.Right)
     {
         ShowDayContextMenu();
     }
 }