void ReleaseDesignerOutlets() { if (LabelLocation != null) { LabelLocation.Dispose(); LabelLocation = null; } if (buttonLocation != null) { buttonLocation.Dispose(); buttonLocation = null; } if (buttonPicture != null) { buttonPicture.Dispose(); buttonPicture = null; } if (imagePhoto != null) { imagePhoto.Dispose(); imagePhoto = null; } }
void ReleaseDesignerOutlets() { if (Button != null) { Button.Dispose(); Button = null; } if (LabelDevice != null) { LabelDevice.Dispose(); LabelDevice = null; } if (LabelLocation != null) { LabelLocation.Dispose(); LabelLocation = null; } if (LabelWeather != null) { LabelWeather.Dispose(); LabelWeather = null; } }