Пример #1
0
        private static void DisplayModeChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ZCalendar calendar = d as ZCalendar;

            if (calendar != null)
            {
                calendar.UpdateCellItems();
                calendar.OnDisplayModeChanged((CalendarMode)e.OldValue, (CalendarMode)e.NewValue);
            }
        }
Пример #2
0
        private static void DisplayDateChangedCalllback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ZCalendar calendar = d as ZCalendar;
            DateTime  oldTime  = Convert.ToDateTime(e.OldValue);
            DateTime  newTime  = Convert.ToDateTime(e.NewValue);

            if (calendar != null)
            {
                calendar.UpdateCellItems();
                calendar.OnDisplayDateChanged(oldTime, newTime);
            }
        }