Пример #1
0
        public void day5(BE.data_weather output)
        {
            //icon:
            string      icon6        = "../icons/" + string.Format("{0}", output.icon6) + ".png";
            Uri         imageUri6    = new Uri(icon6, UriKind.Relative);
            BitmapImage imageBitmap6 = new BitmapImage(imageUri6);

            Table.image_6.Source     = imageBitmap6;
            Table.image_6.Visibility = Visibility.Visible;

            //description
            Table.desc_6.Text = string.Format("{0}", output.description6);

            //tmp_day
            Table.tmp_day_6.Text = string.Format("{0}°С", Math.Round(output.tmp_day_6, 1));
            //tmp_night
            Table.tmp_night_6.Text = string.Format("{0}°С", Math.Round(output.tmp_night_6, 1));

            //day
            Table.day_6.Text = string.Format("{0}", getDate(output.day_6));
        }
Пример #2
0
        public void day4(BE.data_weather output)
        {
            //icon:
            string      icon5        = "../icons/" + string.Format("{0}", output.icon5) + ".png";
            Uri         imageUri5    = new Uri(icon5, UriKind.Relative);
            BitmapImage imageBitmap5 = new BitmapImage(imageUri5);

            Table.image_5.Source     = imageBitmap5;
            Table.image_5.Visibility = Visibility.Visible;

            //description
            Table.desc_5.Text = string.Format("{0}", output.description5);

            //tmp_day
            Table.tmp_day_5.Text = string.Format("{0}°С", Math.Round(output.tmp_day_5, 1));
            //tmp_night
            Table.tmp_night_5.Text = string.Format("{0}°С", Math.Round(output.tmp_night_5, 1));

            //day
            Table.day_5.Text = string.Format("{0}", getDate(output.day_5));
        }
Пример #3
0
        public void day2(BE.data_weather output)
        {
            //icon:
            string      icon3        = "../icons/" + string.Format("{0}", output.icon3) + ".png";
            Uri         imageUri3    = new Uri(icon3, UriKind.Relative);
            BitmapImage imageBitmap3 = new BitmapImage(imageUri3);

            Table.image_3.Source     = imageBitmap3;
            Table.image_3.Visibility = Visibility.Visible;

            //description
            Table.desc_3.Text = string.Format("{0}", output.description3);

            //tmp_day
            Table.tmp_day_3.Text = string.Format("{0}°С", Math.Round(output.tmp_day_3, 1));
            //tmp_night
            Table.tmp_night_3.Text = string.Format("{0}°С", Math.Round(output.tmp_night_3, 1));

            //day
            Table.day_3.Text = string.Format("{0}", getDate(output.day_3));
        }
Пример #4
0
        public void day3(BE.data_weather output)
        {
            //icon:
            string      icon4        = "../icons/" + string.Format("{0}", output.icon4) + ".png";
            Uri         imageUri4    = new Uri(icon4, UriKind.Relative);
            BitmapImage imageBitmap4 = new BitmapImage(imageUri4);

            Table.image_4.Source     = imageBitmap4;
            Table.image_4.Visibility = Visibility.Visible;

            //description
            Table.desc_4.Text = string.Format("{0}", output.description4);

            //tmp_day
            Table.tmp_day_4.Text = string.Format("{0}°С", Math.Round(output.tmp_day_4, 1));
            //tmp_night
            Table.tmp_night_4.Text = string.Format("{0}°С", Math.Round(output.tmp_night_4, 1));

            //day
            Table.day_4.Text = string.Format("{0}", getDate(output.day_4));
        }
Пример #5
0
        public void day1(BE.data_weather output)
        {
            //icon:
            string      icon2        = "../icons/" + string.Format("{0}", output.icon2) + ".png";
            Uri         imageUri2    = new Uri(icon2, UriKind.Relative);
            BitmapImage imageBitmap2 = new BitmapImage(imageUri2);

            Table.image_2.Source     = imageBitmap2;
            Table.image_2.Visibility = Visibility.Visible;

            //description
            Table.desc_2.Text = string.Format("{0}", output.description2);

            //tmp_day
            Table.tmp_day_2.Text = string.Format("{0}°С", Math.Round(output.tmp_day_2, 1));
            //tmp_night
            Table.tmp_night_2.Text = string.Format("{0}°С", Math.Round(output.tmp_night_2, 1));

            //day
            Table.day_2.Text = string.Format("{0}", getDate(output.day_2));
        }