Ejemplo n.º 1
0
        void ReleaseDesignerOutlets()
        {
            if (BorderFromField != null)
            {
                BorderFromField.Dispose();
                BorderFromField = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if (ValueSymbolToLabel != null)
            {
                ValueSymbolToLabel.Dispose();
                ValueSymbolToLabel = null;
            }
        }
Ejemplo n.º 2
0
        void ReleaseDesignerOutlets()
        {
            if (CameraButton != null)
            {
                CameraButton.Dispose();
                CameraButton = null;
            }

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

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

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

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

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

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

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

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

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