예제 #1
0
파일: Form1.cs 프로젝트: przemekwa/pogoda
        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);
        }
예제 #2
0
파일: Form1.cs 프로젝트: przemekwa/pogoda
        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);
        }