예제 #1
0
        void ReleaseDesignerOutlets()
        {
            if (Button != null)
            {
                Button.Dispose();
                Button = null;
            }

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

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

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

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

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

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

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