コード例 #1
0
        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);
            }
        }
コード例 #2
0
 private void selectCalendarMonthControl1_MonthSelected(object o, CompositeViews.SelectMonthEventArgs arg)
 {
     SelectedMonth = arg.Month;
     SelectedYear  = arg.Year;
     DialogResult  = DialogResult.OK;
 }