void ReleaseDesignerOutlets() { if (liveCameraStream != null) { liveCameraStream.Dispose(); liveCameraStream = null; } if (ProgressBar != null) { ProgressBar.Dispose(); ProgressBar = null; } if (SampleFace != null) { SampleFace.Dispose(); SampleFace = null; } if (ScoreLabel != null) { ScoreLabel.Dispose(); ScoreLabel = null; } if (SwitchCameraButton != null) { SwitchCameraButton.Dispose(); SwitchCameraButton = null; } if (TakePhotoButton != null) { TakePhotoButton.Dispose(); TakePhotoButton = null; } }
void ReleaseDesignerOutlets() { if (AudioButton != null) { AudioButton.Dispose(); AudioButton = null; } if (flashButton != null) { flashButton.Dispose(); flashButton = null; } if (GalleryButton != null) { GalleryButton.Dispose(); GalleryButton = null; } if (liveCameraStreamView != null) { liveCameraStreamView.Dispose(); liveCameraStreamView = null; } if (SwitchCameraButton != null) { SwitchCameraButton.Dispose(); SwitchCameraButton = null; } if (TakePhotoButton != null) { TakePhotoButton.Dispose(); TakePhotoButton = null; } }