public YearlyHolidayDialog(MainForm main_form, Calendar2 calendar, int year) { //Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US"); InitializeComponent(); this.main_form = main_form; this.calendar = calendar; this.current_year = year; }
private void calendarMenuItem_Click(object sender, EventArgs e) { if (this.calendar_wind == null) { this.calendar_wind = new Calendar2(this); this.calendar_wind.MdiParent = this; this.calendar_wind.Show(); } else { this.calendar_wind.Activate(); } }
public CustomDateEvent2(MainForm main_form, Calendar2 calendar, DateTime date, int current_month, List<AbsentVM> absent_list, List<Istab> absent_cause, List<TrainingCalendar> trainer_list, NoteCalendar note, List<Users> users_list, int max_leave) { //Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US"); InitializeComponent(); this.main_form = main_form; this.date = date; this.current_month = current_month; this.absent_list = absent_list; this.absent_cause = absent_cause; this.trainer_list = trainer_list; this.note = note; this.users_list = users_list; this.max_leave = max_leave; this.calendar = calendar; }