示例#1
0
        private void RangeSlider_RangeSelectionChanged(object sender, AC.AvalonControlsLibrary.Controls.RangeSelectionChangedEventArgs e)
        {
            Console.WriteLine("e.NewRangeStart: " + e.NewRangeStart);

            Console.WriteLine("e.NewRangeStop: " + e.NewRangeStop);
            long minute = 0;
            long hour   = 0;

            hour        = e.NewRangeStart / 60;
            minute      = e.NewRangeStart % 60;
            min.Content = hour + ":" + minute;

            hour        = e.NewRangeStop / 60;
            minute      = e.NewRangeStop % 60;
            max.Content = hour + ":" + minute;
        }
示例#2
0
        private void eveningRangeSlider_RangeSelectionChanged(object sender, AC.AvalonControlsLibrary.Controls.RangeSelectionChangedEventArgs e)
        {
            eveningModeStartTime.Content = e.NewRangeStart / 60 + ":" + e.NewRangeStart % 60;

            eveningModeEndTime.Content = e.NewRangeStop / 60 + ":" + e.NewRangeStop % 60;
        }