void ReleaseDesignerOutlets()
        {
            if (SetAsDefultCityButton != null)
            {
                SetAsDefultCityButton.Dispose();
                SetAsDefultCityButton = null;
            }

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

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

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

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

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

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

            if (WeatherWindTextField != null)
            {
                WeatherWindTextField.Dispose();
                WeatherWindTextField = null;
            }
        }
Ejemplo n.º 2
0
        void ReleaseDesignerOutlets()
        {
            if (QueryStringTextField != null)
            {
                QueryStringTextField.Dispose();
                QueryStringTextField = null;
            }

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

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

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

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

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