void ReleaseDesignerOutlets()
        {
            if (AlbumSwitch != null)
            {
                AlbumSwitch.Dispose();
                AlbumSwitch = null;
            }

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

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

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

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

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

            if (TakeVideo != null)
            {
                TakeVideo.Dispose();
                TakeVideo = null;
            }
        }
Example #2
0
 void ReleaseDesignerOutlets()
 {
     if (PickPhoto != null)
     {
         PickPhoto.Dispose();
         PickPhoto = null;
     }
     if (PickVideo != null)
     {
         PickVideo.Dispose();
         PickVideo = null;
     }
     if (TakePhoto != null)
     {
         TakePhoto.Dispose();
         TakePhoto = null;
     }
     if (TakeVideo != null)
     {
         TakeVideo.Dispose();
         TakeVideo = null;
     }
 }
        void ReleaseDesignerOutlets()
        {
            if (AlbumSwitch != null)
            {
                AlbumSwitch.Dispose();
                AlbumSwitch = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if (TakeVideo != null)
            {
                TakeVideo.Dispose();
                TakeVideo = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (AlbumSwitch != null)
            {
                AlbumSwitch.Dispose();
                AlbumSwitch = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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