public TimeSpan GetCurrentVideoPosition()
        {
            DataReqEventArgs eData = new DataReqEventArgs();

            GetPosition?.Invoke(this, eData);
            return(eData.Position);
        }
 public void Toggle_Video_Position_Update()
 {
     bUpdateVidPos = !bUpdateVidPos;
     if (bUpdateVidPos)
     {
         DataReqEventArgs eData = new DataReqEventArgs();
         eData.Position = new TimeSpan(0, 0, 0, 0, Convert.ToInt32(dSaveVidPos));
         SetPosition?.Invoke(this, eData);
     }
 }
        public void Play_Pause_Video()
        {
            DataReqEventArgs eData = new DataReqEventArgs();

            if (PlayCtrlContent == "Play")
            {
                PlayRequest?.Invoke(this, eData);
                PlayCtrlContent = "Pause";
            }
            else
            {
                PauseRequest?.Invoke(this, eData);
                PlayCtrlContent = "Play";
            }
        }
        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");
        }