Example #1
0
        private void FillWeatherLabels()
        {
            var weatherModel = new WeatherApi("94cac1b2a3993022");

            var weatherDto = weatherModel.Get();

            this.Weather_Label_Description_.Text    = weatherDto.Description;
            this.Weather_Label_Temperature.Text     = $"{weatherDto.Temperature} °C";
            this.Weather_Label_TemperatureFeel.Text = $"{weatherDto.TemperatureFeel} °C";
            this.Weather_Label_Pressure.Text        = $"{weatherDto.Pressure} hPa";
            this.Weather_Label_Location.Text        = weatherDto.Location;
            this.Weather_PictureBox_Image.Load(weatherDto.Image);
        }
Example #2
0
        private void FillWeatherLabels()
        {
            var weatherModel = new WeatherApi("94cac1b2a3993022");

            var weatherDto = weatherModel.Get();

            this.Weather_Label_Description_.Text = weatherDto.Description;
            this.Weather_Label_Temperature.Text = $"{weatherDto.Temperature} °C";
            this.Weather_Label_TemperatureFeel.Text =$"{weatherDto.TemperatureFeel} °C";
            this.Weather_Label_Pressure.Text = $"{weatherDto.Pressure} hPa";
            this.Weather_Label_Location.Text = weatherDto.Location;
            this.Weather_PictureBox_Image.Load(weatherDto.Image);
        }