示例#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);
        }