示例#1
0
        private void LoadDateDay2()
        {
            ForeCase day2 = new ForeCase("洛阳", 2);

            day2time_lb.Text   = day2.ForeCaseData1;
            day2fotxt_lb.Text  = "白:" + day2.ForeCaseDStatus1 + "—夜间:" + day2.ForeCaseNStatus1;
            day2tmpmax_lb.Text = day2.Tmp_max1;
            day2tmpmin_lb.Text = day2.Tmp_min1;
            day2win_lb.Text    = day2.Wind_dir + "," + day2.Wind_power1;
            day2week_lb.Text   = GetWeek(1);
            day2_pic.Image     = day2.Dimg;
        }
示例#2
0
        private void LoadDateDay3()
        {
            ForeCase day3 = new ForeCase("洛阳", 3);

            day3time_lb.Text   = day3.ForeCaseData1;
            day3fotxt_lb.Text  = "白:" + day3.ForeCaseDStatus1 + "—夜间:" + day3.ForeCaseNStatus1;
            day3tmpmax_lb.Text = day3.Tmp_max1;
            day3tmpmin_lb.Text = day3.Tmp_min1;
            day3win_lb.Text    = day3.Wind_dir + "," + day3.Wind_power1;
            day3week_lb.Text   = GetWeek(2);
            day3_pic.Image     = day3.Dimg;
        }
示例#3
0
        private void loadForecaseDataday1()
        {
            ForeCase day1 = new ForeCase("洛阳", 1);

            //MessageBox.Show(  day1.GetingImgSrc("101"));
            if (day1.ifdata)
            {
                day1time_lb.Text    = day1.ForeCaseData1;
                day1week_lb.Text    = getnowtimes("星期");
                day1_tmpmax_lb.Text = day1.Tmp_max1;
                day1_tmpmin_lb.Text = day1.Tmp_min1;
                if (day1.Now_img == null)
                {
                    now_pic.Image = day1.Dimg;
                    //MessageBox.Show("以获取今天白天天气信息");
                }
                else
                {
                    now_pic.Image = day1.Now_img;
                }

                now_fotxt_lb.Text           = day1.Now_forecase;
                nowtmp_lb.Text              = day1.Now_tmp;
                now_win_lb.Text             = "风向:" + day1.Now_windir + "\r\n" + "风力:" + takestrbiglength(day1.Now_WinPower);
                life_air_lb.Text            = "今天的空气质量:" + day1.Life_air + "\r\n" + "宝宝提醒您:" + takestrbiglength(day1.Tlife_air);
                life_cloth_lb.Text          = "今天天气:" + day1.Life_dress + "\r\n" + "宝宝提醒您:" + takestrbiglength(day1.Tlife_dress);
                life_comf_lb.Text           = "今天的天气:" + day1.Life_comfortablle + "\r\n" + "宝宝提醒您:" + takestrbiglength(day1.Tlife_comfortablle);
                life_flu_lb.Text            = "今天的天气:" + day1.Life_influenza + "\r\n" + "宝宝提醒您:" + takestrbiglength(day1.Tlife_influenza);
                life_travel_lb.Text         = "今天的天气" + day1.Life_travel + "旅行" + "\r\n" + takestrbiglength(day1.Tlife_travel);
                life_uv_lb.Text             = "今天的紫外线:" + day1.Life_ultraviolet + "\r\n" + "宝宝提醒您:" + takestrbiglength(day1.Tlife_ultraviolet);
                life_washcar_lb.Text        = "今天" + day1.Life_washcar + "洗车" + "\r\n" + "宝宝提醒您:" + takestrbiglength(day1.Tlife_washcar);
                notifyIcon1.BalloonTipTitle = "天气提醒";
                notifyIcon1.BalloonTipText  = "天气:" + day1.Life_comfortablle + "\r\n" + "宝宝提醒您:" + day1.Tlife_comfortablle + "\r\n" + life_cloth_lb.Text;
                notifyIcon1.ShowBalloonTip(2000);

                toolTip1.SetToolTip(button1, life_cloth_lb.Text);
            }
            else
            {
                MessageBox.Show("数据获取失败!");
            }
        }