void ReleaseDesignerOutlets() { if (CityName != null) { CityName.Dispose(); CityName = null; } if (Humidity != null) { Humidity.Dispose(); Humidity = null; } if (leftVIew != null) { leftVIew.Dispose(); leftVIew = null; } if (Pressure != null) { Pressure.Dispose(); Pressure = null; } if (Temp != null) { Temp.Dispose(); Temp = null; } if (topview != null) { topview.Dispose(); topview = null; } if (WeatherDescription != null) { WeatherDescription.Dispose(); WeatherDescription = null; } if (WindSpeed != null) { WindSpeed.Dispose(); WindSpeed = null; } }
void ReleaseDesignerOutlets() { if (Humidity != null) { Humidity.Dispose(); Humidity = null; } if (HumidityLabel != null) { HumidityLabel.Dispose(); HumidityLabel = null; } if (MaxTemp != null) { MaxTemp.Dispose(); MaxTemp = null; } if (MinTemp != null) { MinTemp.Dispose(); MinTemp = null; } if (Pressure != null) { Pressure.Dispose(); Pressure = null; } if (PressureLabel != null) { PressureLabel.Dispose(); PressureLabel = null; } if (ShowDetails != null) { ShowDetails.Dispose(); ShowDetails = null; } if (showHideLabel != null) { showHideLabel.Dispose(); showHideLabel = null; } if (SomeDetailsView != null) { SomeDetailsView.Dispose(); SomeDetailsView = null; } if (Temperature != null) { Temperature.Dispose(); Temperature = null; } if (TemperatureLabel != null) { TemperatureLabel.Dispose(); TemperatureLabel = null; } if (TempMaxLabel != null) { TempMaxLabel.Dispose(); TempMaxLabel = null; } if (TempMinLabel != null) { TempMinLabel.Dispose(); TempMinLabel = null; } if (Town != null) { Town.Dispose(); Town = null; } if (WindSpeed != null) { WindSpeed.Dispose(); WindSpeed = null; } if (WindSpeedLabel != null) { WindSpeedLabel.Dispose(); WindSpeedLabel = null; } }