예제 #1
0
        private static void OnMinimumMinuteChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            NumericUpDownTime control = (NumericUpDownTime)d;

            if (control.FinalValueMinute < control.MinimumMinute)
            {
                control.FinalValueMinute = control.MinimumMinute;
            }
        }
예제 #2
0
        private static void OnMinimumHourChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            NumericUpDownTime control = (NumericUpDownTime)d;

            if (control.FinalValueHour < control.MinimumHour)
            {
                control.FinalValueHour = control.MinimumHour;
            }
        }
예제 #3
0
        private static void OnFinalValueHourChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            NumericUpDownTime control = (NumericUpDownTime)d;

            control.UpdateText(e.Property.Name);
            if (control.ValueHour != control.FinalValueHour)
            {
                control.ValueHour = control.FinalValueHour;
            }
        }
예제 #4
0
        private static void OnValueMinuteChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            NumericUpDownTime control = (NumericUpDownTime)d;

            control.UpdateText(e.Property.Name);
        }