void timeRangeEditor_TimeRangeChanged(object sender, TimeRangeChangedEventArgs e)
 {
     if (e.IsBeginChanged == true)
     {
         this.PlayBegin(e.Begin);
     }
     else
     {
         this.PlayEnd(e.End);
     }
 }
Esempio n. 2
0
        private void NotifyTimeRangeChanged(bool isBeginChanged, bool isEndChanged)
        {
            if (this.TimeRangeChanged != null)
            {
                var args = new TimeRangeChangedEventArgs(TimeSpan.FromSeconds(this.Begin), TimeSpan.FromSeconds(this.End))
                {
                    IsBeginChanged = isBeginChanged,
                    IsEndChanged   = isEndChanged
                };

                this.TimeRangeChanged(this, args);
            }
        }