コード例 #1
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);
            }
        }
コード例 #2
0
 private void radInterval_Checked(object sender, RoutedEventArgs e)
 {
     DayInterval = IntervalTypeEnum.DAY_INTERVAL;
 }
コード例 #3
0
 private void radAll_Checked(object sender, RoutedEventArgs e)
 {
     DayInterval = IntervalTypeEnum.DAY_ENTIRE;
 }