private void buttonSelectMonth_Click(object sender, EventArgs e) { SelectMonthEventArgs args = new SelectMonthEventArgs(); args.Month = int.Parse((sender as Button).Tag.ToString()); args.Year = GetSelectedYear(); if (MonthSelected != null) { MonthSelected(sender, args); } }
private void selectCalendarMonthControl1_MonthSelected(object o, CompositeViews.SelectMonthEventArgs arg) { SelectedMonth = arg.Month; SelectedYear = arg.Year; DialogResult = DialogResult.OK; }