public void ResumeVideo() { try { if (_statusVideo == StatusVideoEnum.Lunched) { _service.Play(); ComPrortSender.Send(_currentVideo.FileMotion, Terminal, App.Current, App.SendMessage, App.SendException); _timerEnd.Start(); } else { ComPortPackagesService.Resume(); _timerEnd.Start(); _service.Play(); VideoBanner.StartPlayer(); } Observer.StartObserv(); _statusVideo = StatusVideoEnum.Started; } catch (Exception ex) { App.SendException(ex); MessageBox.Show($"Video not runned please wait. | {ex.Message}"); } }
private void BtnReusume_Click(object sender, RoutedEventArgs e) { if (flagIsStarted) { ComPortPackagesService.Resume(); } }