예제 #1
0
        void PhotoEditorView_TrashButtonTapped(object sender, EventArgs e)
        {
            takenPhotosOverlayView.RemoveLastTappedCell();
            photoEditorView.Hidden = true;
            SetNeedsDisplay();

            controlsOverlayView.SetSendVisibility(takenPhotosOverlayView.Photos.Count > 0);
            controlsOverlayView.SetTakeVisibility(takenPhotosOverlayView.Photos.Count < MaxImageCount);

            cameraPreview.CaptureSession.StartRunning();
            cameraPreview.IsPreviewing = true;
        }
예제 #2
0
        void ControlsOverlayView_TrashButtonTouched(object sender, EventArgs e)
        {
            takenPhotosOverlayView.RemoveLastTappedCell();

            TrashButtonTapped?.Invoke(this, new EventArgs());

            if (Photos.Count == 0)
            {
                CloseButtonTapped?.Invoke(this, new EventArgs());
            }
            else
            {
                SelectLastItem();
            }
        }