private static void EndTime_Changed(DependencyObject dpObj, DependencyPropertyChangedEventArgs e)
        {
            DialogSentenceTimeRangeEditor sentenceEditor = dpObj as DialogSentenceTimeRangeEditor;

            sentenceEditor.timeRangeEditor.ViewModel.End = ((TimeSpan)e.NewValue).TotalSeconds;
            sentenceEditor.PlayEnd();
        }
        private static void Sentence_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            DialogSentenceTimeRangeEditor editor = d as DialogSentenceTimeRangeEditor;
            var sentence = e.NewValue as DMSentence;

            if (sentence != null)
            {
                editor.BeginTime = sentence.BeginTime;
                editor.EndTime   = sentence.EndTime;
            }
        }