/// <summary> /// Method used for to open an add appointment window /// </summary> /// <param name="e">Data for the date is required</param> private void OpenAppointment(DateClickEventArgs e) { AddAppointmentWindow addAppointmentWindow = new AddAppointmentWindow(e.Date, MousePosition, appointments); addAppointmentWindow.ShowDialog(); UpdateCalendar(0); }
/// <summary> /// An event that goes to the date in the calendar /// </summary> /// <param name="sender"></param> /// <param name="dateEvent">Requires a DateClickEventArgs with data for the date</param> public void OverviewTabOnClickOnDate(object sender, DateClickEventArgs dateEvent) { this.mainWindow.HighlightCurrentButton(mainWindow.bookingButton); this.mainWindow._lastPage = this; overviewTab.Hide(); this.Show(); UpdateCalendar(dateEvent.Date); }
private void panel_Click(DateClickEventArgs e) { ClickOnDateTriggered?.Invoke(this, e); }