Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
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);
 }
Ejemplo n.º 3
0
 private void panel_Click(DateClickEventArgs e)
 {
     ClickOnDateTriggered?.Invoke(this, e);
 }