Beispiel #1
0
 void ReleaseDesignerOutlets()
 {
     if (CameraView != null)
     {
         CameraView.Dispose();
         CameraView = null;
     }
     if (GrayCardButton != null)
     {
         GrayCardButton.Dispose();
         GrayCardButton = null;
     }
     if (NoCamera != null)
     {
         NoCamera.Dispose();
         NoCamera = null;
     }
     if (Segments != null)
     {
         Segments.Dispose();
         Segments = null;
     }
     if (Temperature != null)
     {
         Temperature.Dispose();
         Temperature = null;
     }
     if (Tint != null)
     {
         Tint.Dispose();
         Tint = null;
     }
 }
Beispiel #2
0
        public void Deactivate()
        {
            win.KeyEvent -= Win_KeyEvent;

            if (imageCamera != null)
            {
                imageCamera.StopPreview();
                imageCamera.Dispose();
                imageCamera = null;

                win.Remove(imageCameraView);
                imageCameraView.Dispose();
            }

            if (overlayCamera != null)
            {
                overlayCamera.StopPreview();
                overlayCamera.Dispose();
                overlayCamera = null;
                win.Remove(overlayCameraView);
                overlayCameraView.Dispose();
            }


            tlog.Fatal(tag, $"Deactivate()! cameraView disposed");
        }
Beispiel #3
0
        public void CameraViewConstructor()
        {
            tlog.Debug(tag, $"CameraViewConstructor START");

            var testingTarget = new CameraView(new ImageView().SwigCPtr.Handle, CameraView.DisplayType.Image);

            Assert.IsNotNull(testingTarget, "Can't create success object CameraView");
            Assert.IsInstanceOf <CameraView>(testingTarget, "Should be an instance of CameraView type.");

            testingTarget.Dispose();
            tlog.Debug(tag, $"CameraViewConstructor END (OK)");
        }
Beispiel #4
0
        void ReleaseDesignerOutlets()
        {
            if (ButtonBack != null)
            {
                ButtonBack.Dispose();
                ButtonBack = null;
            }

            if (ButtonCapture != null)
            {
                ButtonCapture.Dispose();
                ButtonCapture = null;
            }

            if (ButtonFlash != null)
            {
                ButtonFlash.Dispose();
                ButtonFlash = null;
            }

            if (ButtonSwitch != null)
            {
                ButtonSwitch.Dispose();
                ButtonSwitch = null;
            }

            if (CameraView != null)
            {
                CameraView.Dispose();
                CameraView = null;
            }

            if (ViewTop != null)
            {
                ViewTop.Dispose();
                ViewTop = null;
            }
        }
 void ReleaseDesignerOutlets()
 {
     if (Bias != null)
     {
         Bias.Dispose();
         Bias = null;
     }
     if (CameraView != null)
     {
         CameraView.Dispose();
         CameraView = null;
     }
     if (Duration != null)
     {
         Duration.Dispose();
         Duration = null;
     }
     if (ISO != null)
     {
         ISO.Dispose();
         ISO = null;
     }
     if (NoCamera != null)
     {
         NoCamera.Dispose();
         NoCamera = null;
     }
     if (Offset != null)
     {
         Offset.Dispose();
         Offset = null;
     }
     if (Segments != null)
     {
         Segments.Dispose();
         Segments = null;
     }
 }
Beispiel #6
0
 void ReleaseDesignerOutlets()
 {
     if (CameraView != null)
     {
         CameraView.Dispose();
         CameraView = null;
     }
     if (CaptureButton != null)
     {
         CaptureButton.Dispose();
         CaptureButton = null;
     }
     if (NoCamera != null)
     {
         NoCamera.Dispose();
         NoCamera = null;
     }
     if (ScrollView != null)
     {
         ScrollView.Dispose();
         ScrollView = null;
     }
 }
 void ReleaseDesignerOutlets()
 {
     if (CameraView != null)
     {
         CameraView.Dispose();
         CameraView = null;
     }
     if (NoCamera != null)
     {
         NoCamera.Dispose();
         NoCamera = null;
     }
     if (Position != null)
     {
         Position.Dispose();
         Position = null;
     }
     if (Segments != null)
     {
         Segments.Dispose();
         Segments = null;
     }
 }