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); } }
private void radInterval_Checked(object sender, RoutedEventArgs e) { DayInterval = IntervalTypeEnum.DAY_INTERVAL; }
private void radAll_Checked(object sender, RoutedEventArgs e) { DayInterval = IntervalTypeEnum.DAY_ENTIRE; }