void ReleaseDesignerOutlets() { if (ImgProfile != null) { ImgProfile.Dispose(); ImgProfile = null; } if (ImgBottom != null) { ImgBottom.Dispose(); ImgBottom = null; } if (LblProfile != null) { LblProfile.Dispose(); LblProfile = null; } if (LblBottom != null) { LblBottom.Dispose(); LblBottom = null; } if (BtnEdit != null) { BtnEdit.Dispose(); BtnEdit = null; } if (ViewProfile != null) { ViewProfile.Dispose(); ViewProfile = null; } if (ViewBottom != null) { ViewBottom.Dispose(); ViewBottom = null; } }
void ReleaseDesignerOutlets() { if (ButtonBack != null) { ButtonBack.Dispose(); ButtonBack = null; } if (ButtonDone != null) { ButtonDone.Dispose(); ButtonDone = null; } if (ButtonSpinner != null) { ButtonSpinner.Dispose(); ButtonSpinner = null; } if (CollectionGallery != null) { CollectionGallery.Dispose(); CollectionGallery = null; } if (ViewBottom != null) { ViewBottom.Dispose(); ViewBottom = null; } if (ViewTop != null) { ViewTop.Dispose(); ViewTop = null; } }