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(); } }