• 大小: 0.07M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-03-27
  • 语言: 其他
  • 标签: 其他  

资源简介


c# winform 调用公共天气预报webservice接口,初学者参考,大神忽略

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public WeatherWS.WeatherWS ws;
        public Form1()
        {
            InitializeComponent();
            ws = new WeatherWS.WeatherWS();
        }

        private void button1_Click(object sender EventArgs e)
        {            
            DataSet ds = ws.getRegionDataset();          
            DataTable  dt=ds.Tables[0];
            String str_temp;
            this.comboBox1.Items.Clear();
            //for (int i = dt.Rows.Count-1; i >=0; i--)
            for (int i = 0; i < dt.Rows.Count; i++)
            {
                str_temp=dt.Rows[i][0].ToString() + dt.Rows[i][1].ToString();
                this.comboBox1.Items.Add(str_temp);                
            }
    

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        950  2016-12-21 09:33  WS Test\WindowsFormsApplication1\WindowsFormsApplication1\app.config

     文件      23040  2016-12-21 13:25  WS Test\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe

     文件        950  2016-12-21 09:33  WS Test\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe.config

     文件      56832  2016-12-21 13:25  WS Test\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.pdb

     文件      11608  2016-12-23 09:34  WS Test\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe

     文件        950  2016-12-21 09:33  WS Test\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe.config

     文件        490  2010-03-17 22:39  WS Test\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe.manifest

     文件       3440  2016-12-21 13:25  WS Test\WindowsFormsApplication1\WindowsFormsApplication1\Form1.cs

     文件       5591  2016-12-21 12:54  WS Test\WindowsFormsApplication1\WindowsFormsApplication1\Form1.Designer.cs

     文件       5817  2016-12-21 12:54  WS Test\WindowsFormsApplication1\WindowsFormsApplication1\Form1.resx

     文件       1479  2016-12-23 09:31  WS Test\WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6908  2016-12-21 13:25  WS Test\WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件      15872  2016-12-21 09:42  WS Test\WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\TempPE\Web References.WeatherWS.Reference.cs.dll

     文件       2224  2016-12-23 09:34  WS Test\WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.csproj.FileListAbsolute.txt

     文件        847  2016-12-21 13:18  WS Test\WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.csproj.GenerateResource.Cache

     文件      23040  2016-12-21 13:25  WS Test\WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.exe

     文件        180  2016-12-21 13:18  WS Test\WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.Form1.resources

     文件      56832  2016-12-21 13:25  WS Test\WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.pdb

     文件        180  2016-12-21 09:44  WS Test\WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.Properties.Resources.resources

     文件        505  2016-12-21 09:28  WS Test\WindowsFormsApplication1\WindowsFormsApplication1\Program.cs

     文件       1390  2016-12-21 09:28  WS Test\WindowsFormsApplication1\WindowsFormsApplication1\Properties\AssemblyInfo.cs

     文件       2900  2016-12-21 09:28  WS Test\WindowsFormsApplication1\WindowsFormsApplication1\Properties\Resources.Designer.cs

     文件       5612  2016-12-21 09:28  WS Test\WindowsFormsApplication1\WindowsFormsApplication1\Properties\Resources.resx

     文件       1744  2016-12-21 09:33  WS Test\WindowsFormsApplication1\WindowsFormsApplication1\Properties\Settings.Designer.cs

     文件        533  2016-12-21 09:33  WS Test\WindowsFormsApplication1\WindowsFormsApplication1\Properties\Settings.settings

     文件      21900  2016-12-21 09:42  WS Test\WindowsFormsApplication1\WindowsFormsApplication1\Web References\WeatherWS\Reference.cs

     文件        602  2016-12-21 09:33  WS Test\WindowsFormsApplication1\WindowsFormsApplication1\Web References\WeatherWS\Reference.map

     文件        755  2016-12-21 09:33  WS Test\WindowsFormsApplication1\WindowsFormsApplication1\Web References\WeatherWS\WeatherWS.disco

     文件      29712  2016-12-21 09:33  WS Test\WindowsFormsApplication1\WindowsFormsApplication1\Web References\WeatherWS\WeatherWS.wsdl

     文件       5061  2016-12-21 09:44  WS Test\WindowsFormsApplication1\WindowsFormsApplication1\WindowsFormsApplication1.csproj

............此处省略19个文件信息

评论

共有 条评论