Exemple #1
0
        protected virtual TBody WithMultipleObjects <T>(SequenceGenerator <T> sequenceGenerator)
            where T : IEndable <TBody>
        {
            var sequence = sequenceGenerator.Invoke(WithObject <T>);

            foreach (var element in sequence)
            {
                element.End(); //force generation
            }

            return(GetSource.Invoke());
        }
        public void InitVideoCtrls()
        {
            DataReqEventArgs eData = new DataReqEventArgs();

            GetSource?.Invoke(this, eData);
            if (eData.Source != null)
            {
                // timer
                DispatcherTimer timer = new DispatcherTimer();
                timer.Interval = TimeSpan.FromMilliseconds(10);
                timer.Tick    += Timer_Tick;
                timer.Start();
            }
            NotifyPropertyChanged("VideoSpanLblContent");
            NotifyPropertyChanged("VideoPositionSldrMax");
        }