Пример #1
0
        void ReleaseDesignerOutlets()
        {
            if (ImagePhoto != null)
            {
                ImagePhoto.Dispose();
                ImagePhoto = null;
            }

            if (PhotoButton != null)
            {
                PhotoButton.Dispose();
                PhotoButton = null;
            }
        }
Пример #2
0
 void ReleaseDesignerOutlets()
 {
     if (ButtonAddEvent != null)
     {
         ButtonAddEvent.Dispose();
         ButtonAddEvent = null;
     }
     if (ButtonCall != null)
     {
         ButtonCall.Dispose();
         ButtonCall = null;
     }
     if (ButtonEmail != null)
     {
         ButtonEmail.Dispose();
         ButtonEmail = null;
     }
     if (ImagePhoto != null)
     {
         ImagePhoto.Dispose();
         ImagePhoto = null;
     }
     if (TextEmail != null)
     {
         TextEmail.Dispose();
         TextEmail = null;
     }
     if (TextFirst != null)
     {
         TextFirst.Dispose();
         TextFirst = null;
     }
     if (TextLast != null)
     {
         TextLast.Dispose();
         TextLast = null;
     }
     if (TextPhone != null)
     {
         TextPhone.Dispose();
         TextPhone = null;
     }
 }
        void ReleaseDesignerOutlets()
        {
            if (LabelName != null)
            {
                LabelName.Dispose();
                LabelName = null;
            }

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

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