private void OnTimerPreview(object status) { GridPhoto.Dispatcher.Invoke(() => { _liveView.Stop(); _cameraDevice.WaitForReady(); VisibilityManagement(2); LaunchTimerBeforeCapture(); }); }
private void Stop() { StopButton.IsEnabled = false; _liveView.Stop(); if (_recording) { StopRecordMovie(); } Hide(); TextBeforeVideo.Visibility = Visibility.Hidden; EndMessage.Visibility = Visibility.Hidden; ErrorMessage.Visibility = Visibility.Hidden; Video.Visibility = Visibility.Hidden; ButtonImageStop.Visibility = Visibility.Hidden; ButtonImage5.Visibility = Visibility.Hidden; ButtonImage4.Visibility = Visibility.Hidden; ButtonImage3.Visibility = Visibility.Hidden; ButtonImage2.Visibility = Visibility.Hidden; ButtonImage1.Visibility = Visibility.Hidden; ButtonImage0.Visibility = Visibility.Hidden; StopButton.Visibility = Visibility.Hidden; StopButton.IsEnabled = false; _playMain(_error); }