示例#1
0
        void ReleaseDesignerOutlets()
        {
            if (SummaryLabel != null)
            {
                SummaryLabel.Dispose();
                SummaryLabel = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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