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

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

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

            if (WeatherLabel != null)
            {
                WeatherLabel.Dispose();
                WeatherLabel = null;
            }
        }
예제 #2
0
        protected override void UpdatePartFromModel()
        {
            if (!(m_Model is BakeNodeModel bakeNodeModel))
            {
                return;
            }

            TemperatureLabel.SetValueWithoutNotify($"{bakeNodeModel.Temperature} C");
            DurationLabel.SetValueWithoutNotify($"{bakeNodeModel.Duration} min.");
        }
예제 #3
0
        private void GuiUpdateTimer_Tick(object sender, EventArgs e)
        {
            if (!_connected)
            {
                return;
            }

            var test = _serial.IsOpen;

            if (!test)
            {
                ConnectionTimer.Start();
                return;
            }
            if (_hum == null || _temperature == null || _ppm == null || _pressure == null)
            {
                return;
            }
            TemperatureLabel.Invoke((Action)UpdateUi);
        }
        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 (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;
            }
        }