Exemple #1
0
        private static void OnItemsSourceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            WorkCalendarEx control = (WorkCalendarEx )d;
            Dictionary <DateTime, IEnumerable> oldValue = (Dictionary <DateTime, IEnumerable>)e.OldValue;
            Dictionary <DateTime, IEnumerable> newValue = (Dictionary <DateTime, IEnumerable>)e.NewValue;

            //((IContainItemStorage)control).Clear();
            control.OnItemsSourceChanged(oldValue, newValue);
        }
Exemple #2
0
        private static void OnCurrentDateChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            WorkCalendarEx control  = (WorkCalendarEx)d;
            DateTime       oldValue = (DateTime)e.OldValue;
            DateTime       newValue = (DateTime)e.NewValue;

            //((IContainItemStorage)control).Clear();
            control.OnCurrentDateChanged(oldValue, newValue);
        }