示例#1
0
        private void btnYearlyHoliday_Click(object sender, EventArgs e)
        {
            YearSelectDialog ys = new YearSelectDialog(DateTime.Now.Year);

            if (ys.ShowDialog() == DialogResult.OK)
            {
                YearlyHolidayDialog yh = new YearlyHolidayDialog(this.main_form, this, ys.selected_year);
                yh.ShowDialog();
            }
        }
示例#2
0
 private void btnYearlyHoliday_Click(object sender, EventArgs e)
 {
     YearSelectDialog ys = new YearSelectDialog(DateTime.Now.Year);
     if (ys.ShowDialog() == DialogResult.OK)
     {
         YearlyHolidayDialog yh = new YearlyHolidayDialog(this.main_form, this, ys.selected_year);
         yh.ShowDialog();
     }
 }