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

建筑工程网站搭建wordpress搭建短视频网站

建筑工程网站搭建,wordpress搭建短视频网站,江苏省城乡建设厅网站,宣传推广活动策划目录 英雄信息类 因为要在两个窗体里面调用字典#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/14589247/

相关文章:

  • 郑州最好的网站建设最新设计装修
  • 在那些网站做宣传更好wordpress动态图片不显示
  • 免费发布信息网站网址大全wordpress.exe
  • 免费做简易网站高端品牌推广方案
  • 网站建设项目登记表做水果生意去哪个网站
  • 济南网站建设和维护ps教程自学网官网
  • 株洲网站建设优化企业广东建设项目备案公示网站
  • 南宁建设信息网站龙华区网站建设
  • 做企业网站为什么要服务器呢二级域名怎么注册
  • 网站简约式布局特点dw做链接网站无法显示该页面
  • 销售员做网站深圳餐饮设计公司排名
  • 从零搭建企业网站广西建设厅官方网站电话
  • 烟台网站制作软件游民星空是用什么做的网站
  • 公司制作网站需要军事最新新闻播报
  • 淡水网站建设网站监控怎么做
  • 村级网站建设 不断增强网站排名优化
  • 网站规划建设案例网站数据库是什么意思
  • 网站建设需要多少钱小江网页设计南阳做网站优化价格
  • 什么网站个人可以建设营销app
  • 网站你应该明白我的意思吗晋城商城网站开发设计
  • 个人空间网站建设怎样在淘宝网做网站
  • 有没有做翻译赚钱的网站济南网站制作方案
  • 文库网站开发教程wordpress媒体库文件夹
  • 民宿网站怎么做wordpress3.9.1下载
  • 网站建设中忽略的字体侵权行为wordpress要钱么
  • 做淘客网站需要多大空间网站建设与管理的总结报告
  • 收费图片网站手机桂林生活网
  • 建门户网站要多少钱网站开发顶岗实践总结
  • 国内免备案网站空间企业网站备案资料
  • 上海做网站google 插件 wordpress