Ejemplo n.º 1
0
 private void WindowKeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Left)
     {
         DeleteCellsDayNumber();
         DeleteEvents();
         currentDate = currentDate.AddMonths(previous);
         SetCalendarView(currentDate, appointments);
     }
     else if (e.Key == Key.Right)
     {
         DeleteCellsDayNumber();
         DeleteEvents();
         currentDate = currentDate.AddMonths(next);
         SetCalendarView(currentDate, appointments);
     }
     else if (e.Key == Key.Space)
     {
         WeekDetail weekDetail = new WeekDetail(new DateTime(currentYear, currentMonthNumber, FIRST_DAY_OF_MONTH));
         weekDetail.Show();
         this.Close();
     }
 }
        private void CreateAndDisplayWeekDetailWindow()
        {
            WeekDetail weekDetailWindow = new WeekDetail(new DateTime(currentYear, currentMonthNumber, FirstDayOfMonth), currentUser);

            weekDetailWindow.Show();
        }
        private void CreateAndDisplayWeekDetail(DateTime weekDate)
        {
            WeekDetail weekDetailWindow = new WeekDetail(weekDate, currentUser);

            weekDetailWindow.Show();
        }
        private void CreateAndDisplayWeekDetail(DateTime weekDate)
        {
            WeekDetail weekDetail = new WeekDetail(weekDate);

            weekDetail.Show();
        }