예제 #1
0
        private static void DisplayModeChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            AduCalendar calendar = d as AduCalendar;

            if (calendar != null)
            {
                calendar.UpdateCellItems();
                calendar.OnDisplayModeChanged((CalendarMode)e.OldValue, (CalendarMode)e.NewValue);
            }
        }
예제 #2
0
        private static void DisplayDateChangedCalllback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            AduCalendar calendar = d as AduCalendar;
            DateTime    oldTime  = Convert.ToDateTime(e.OldValue);
            DateTime    newTime  = Convert.ToDateTime(e.NewValue);

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