コード例 #1
0
        private static void EndTime_Changed(DependencyObject dpObj, DependencyPropertyChangedEventArgs e)
        {
            DialogSentenceTimeRangeEditor sentenceEditor = dpObj as DialogSentenceTimeRangeEditor;

            sentenceEditor.timeRangeEditor.ViewModel.End = ((TimeSpan)e.NewValue).TotalSeconds;
            sentenceEditor.PlayEnd();
        }
コード例 #2
0
        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;
            }
        }