Пример #1
0
        private static void OnDayChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
        {
            UTimeControl control = obj as UTimeControl;
            DayEnum      d       = (DayEnum)e.NewValue;

            control.cbxDay.Content = CUtil.DayEnumToString(d);
            control.grbBox.Header  = CUtil.DayEnumToString(d);
        }
Пример #2
0
        private static void OnToMinuteChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
        {
            UTimeControl control = obj as UTimeControl;

            if (control.OnChanged != null)
            {
                control.OnChanged(control, null);
            }
        }
Пример #3
0
        private static void OnDayIntervalChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
        {
            UTimeControl     control = obj as UTimeControl;
            IntervalTypeEnum di      = (IntervalTypeEnum)e.NewValue;

            if (di == IntervalTypeEnum.DAY_ENTIRE)
            {
                control.radAll.IsChecked = true;
            }
            else
            {
                control.radInterval.IsChecked = true;
            }

            if (control.OnChanged != null)
            {
                control.OnChanged(control, null);
            }
        }