当前位置: 首页 > news >正文

建筑工程网站搭建服装网站建设项目实施报告范文

建筑工程网站搭建,服装网站建设项目实施报告范文,营销型网站的作用是,自己可以做百度网站吗目录 英雄信息类 因为要在两个窗体里面调用字典#xff0c;所以要写两个类来构建全局变量 添加功能 查询功能 英雄信息类 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WindowsFormsApp…目录 英雄信息类 因为要在两个窗体里面调用字典所以要写两个类来构建全局变量 添加功能 查询功能 英雄信息类 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WindowsFormsApplication1 {   public  class hero     {       public int Id;       public string Name;       public int Money;       public string Type;       public hero(int id,string name,int money,string type) {           Id id;           Name name;           Money money;           Type type;       }     } } 因为要在两个窗体里面调用字典所以要写两个类来构建全局变量 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WindowsFormsApplication1 {     internal class Class1     {         public Dictionarystring ,hero dic;         public Class1()         {             dic new Dictionarystring, hero();         }     } } using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WindowsFormsApplication1 {     class Class2     {         public static Class1 data new Class1();     } }   添加功能 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace WindowsFormsApplication1 {     public partial class Form2 : Form     {         public Form2()         {             InitializeComponent();         }         private void button1_Click(object sender, EventArgs e)         {             int id int.Parse(textBox1.Text);             string name textBox2.Text;             int money int.Parse(textBox3.Text);             string object1 textBox4.Text;             hero h new hero(id, name, money, object1);             Class2.data.dic[name] h;                         // int s Class2.data.dic[name].Money;           //  MessageBox.Show(s.ToString());         }         private void Form2_Load(object sender, EventArgs e)         {         }         private void button2_Click(object sender, EventArgs e)         {             this.Close();         }     } }   查询功能 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace WindowsFormsApplication1 {     public partial class Form1 : Form     {         public Form1()         {             InitializeComponent();         }                 private void button2_Click(object sender, EventArgs e)         {             Form2 f new Form2();             f.ShowDialog();             NewMethod();         }         private void Form1_Load(object sender, EventArgs e)         {             NewMethod();         }         private void NewMethod()         {             this.dataGridView1.Rows.Clear();             for (int i 0; i Class2.data.dic.Keys.Count; i)             {                 string nam Class2.data.dic.Keys.ElementAt(i);                 hero h Class2.data.dic[nam];                 DataGridViewRow row new DataGridViewRow();                 row.CreateCells(dataGridView1);                 row.Cells[0].Value h.Id;                 row.Cells[1].Value h.Name;                 row.Cells[2].Value h.Money;                 row.Cells[3].Value h.Type;                 dataGridView1.Rows.Add(row);             }         }         private void button1_Click(object sender, EventArgs e)         {             if (textBox1.Text)             {                   NewMethod();             }             else             {                 this.dataGridView1.Rows.Clear();                 string name textBox1.Text;                 for (int i 0; i Class2.data.dic.Keys.Count; i)                 {                     string nam Class2.data.dic.Keys.ElementAt(i);                     if (namname)                     {                         hero h Class2.data.dic[nam];                         DataGridViewRow row new DataGridViewRow();                         row.CreateCells(dataGridView1);                         row.Cells[0].Value h.Id;                         row.Cells[1].Value h.Name;                         row.Cells[2].Value h.Money;                         row.Cells[3].Value h.Type;                         dataGridView1.Rows.Add(row);                     }                                  }             }         }          } }
http://www.hkea.cn/news/14413840/

相关文章:

  • dedecms 金融类网站模板受欢迎的邢台做网站
  • 福州最好的网站建设网络公司企业网站服务器选择
  • 网站的首屏 一屏 二屏是什么意思360搜索网址是多少
  • 免费做简易网站wordpress添加心情
  • 自主建站护肤品主题网站怎么做
  • 国外做建材的网站有哪些北京网站开发制作公司
  • 厦门网站seo优化wordpress 新浪云
  • 农特产品电商网站建设目标建立网站的服务器
  • 保山网站建设优化珠海建站联系方式
  • 网站建设与管理专业就业方向wordpress回复显示插件
  • 网站怎么做关键词流量seo入门教学
  • 淡水网站建设网络广告的缺点
  • 大庆 网站制作建一个wordpress网站成本
  • 购物网站技术实施方案推广网站排名
  • 网站设计需要什么证wordpress 打包 转移
  • 中山门户网站建设优化方案怎么写
  • 汕尾建设网站制作网页免费
  • 国内网站备案修改wordpress文章发布时间
  • 网站建设前台功能设计与实现腾讯公司网页设计
  • 江宁交通建设集团网站河南省和城乡建设厅网站
  • 网站内页产品 首页推荐银川网站网站建设
  • 余姚网站推广公司整人做我女朋友网站
  • 哪个网站做自考题目免费wordpress标题不居中
  • 国内老牌的室内设计网站可视化小程序开发工具
  • 宜兴做阿里巴巴网站莱芜都市网下载
  • 建材网站方案用wordpress做网站教程
  • 东台建网站贵州成品网站
  • 推荐几个自学做衣服的网站湘潭网站建设问下磐石网络
  • 移动端网站建设的意义下载asp做网站
  • 大型网站设计公司临汾市网站建设