public void Open() { _error = false; Show(); 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; _liveView = new LiveView(_cameraDevice, StopWithEndMessage); _liveView.Start(Video, false); LaunchTimerBeforeCapture(3); }
public void Open(int nbPhotos, FacesPrinter.PrinterType printer, int nbPrints) { _nbPhotos = nbPhotos; _printer = printer; _nbPrints = nbPrints; _error = false; Show(); VisibilityManagement(1); _photos = new List <PhotoPath>(); _cameraDevice.PhotoCaptured += DeviceManager_PhotoCaptured; _cameraDevice.WaitForReady(); _liveView = new LiveView(_cameraDevice, Stop); _liveView.Start(Preview, true); _timerPreview = new System.Threading.Timer(OnTimerPreview, null, TimeSpan.FromSeconds(5), TimeSpan.FromMilliseconds(-1)); }