Routed event arguments for the TimeSelectedChanged event
Inheritance: System.Windows.RoutedEventArgs
        private void OnTimeSelectedChanged(TimeSpan newTime, TimeSpan oldTime)
        {
            TimeSelectedChangedRoutedEventArgs args = new TimeSelectedChangedRoutedEventArgs(SelectedTimeChangedEvent);

            args.NewTime = newTime;
            args.OldTime = oldTime;
            RaiseEvent(args);
        }
 private void dtpFromDate_Exception_SelectedDateChanged(object sender, TimeSelectedChangedRoutedEventArgs e)
 {
     if (dtpFromDate_Exception.SelectedDate == null || tmpFromDate_Exception == null || dtpToDate_Exception.SelectedDate == null || tmpToDate_Exception == null) return;
     DateTime dtDateTime = new DateTime(dtpFromDate_Exception.SelectedDate.Value.Year,
                                            dtpFromDate_Exception.SelectedDate.Value.Month,
                                            dtpFromDate_Exception.SelectedDate.Value.Day,
                                            tmpFromDate_Exception.SelectedHour,
                                            tmpFromDate_Exception.SelectedMinute,
                                            tmpFromDate_Exception.SelectedSecond);
     DateTime dtToDate = new DateTime(dtpToDate_Exception.SelectedDate.Value.Year,
                                             dtpToDate_Exception.SelectedDate.Value.Month,
                                             dtpToDate_Exception.SelectedDate.Value.Day,
                                             tmpToDate_Exception.SelectedHour,
                                             tmpToDate_Exception.SelectedMinute,
                                             tmpToDate_Exception.SelectedSecond);
     FillBatchNumberCombo(dtDateTime, dtToDate, Convert.ToBoolean(chkDropBased.IsChecked));
 }
 private void OnTimeSelectedChanged(TimeSpan newTime, TimeSpan oldTime)
 {
     TimeSelectedChangedRoutedEventArgs args = new TimeSelectedChangedRoutedEventArgs(SelectedTimeChangedEvent);
     args.NewTime = newTime;
     args.OldTime = oldTime;
     RaiseEvent(args);
 }