void ReleaseDesignerOutlets() { if (Camera != null) { Camera.Dispose(); Camera = null; } if (Gallery != null) { Gallery.Dispose(); Gallery = null; } if (Sent != null) { Sent.Dispose(); Sent = null; } if (Test != null) { Test.Dispose(); Test = null; } }
void ReleaseDesignerOutlets() { if (addPicFromCamera != null) { addPicFromCamera.Dispose(); addPicFromCamera = null; } if (addPicFromGalary != null) { addPicFromGalary.Dispose(); addPicFromGalary = null; } if (mAddress != null) { mAddress.Dispose(); mAddress = null; } if (mCity != null) { mCity.Dispose(); mCity = null; } if (mDescription != null) { mDescription.Dispose(); mDescription = null; } if (mError != null) { mError.Dispose(); mError = null; } if (mFullName != null) { mFullName.Dispose(); mFullName = null; } if (mPhoneNumber != null) { mPhoneNumber.Dispose(); mPhoneNumber = null; } if (pic != null) { pic.Dispose(); pic = null; } if (Sent != null) { Sent.Dispose(); Sent = null; } if (Test != null) { Test.Dispose(); Test = null; } }