2016年9月18日
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u 阅读全文
posted @ 2016-09-18 09:04 Lovetolaugh 阅读(209) 评论(0) 推荐(0)
摘要: DataGridView:显示数据表后台数据绑定:List<xxx> list = new List<xxx>();dataGridView1.DataSource = list;//设置不自动生成列,此属性在属性面板中没有dataGridView1.AutoGenerateColumns = fa 阅读全文
posted @ 2016-09-18 09:03 Lovetolaugh 阅读(210) 评论(0) 推荐(0)
摘要: 窗体这部分内容是程序可视化的第一步,从CMD黑窗到友好的可视化界面,VS提供了简介实用的设计方法和程序方法,大量的智能提醒是程序员在做程序时节省大量的时间 首先了解的是首先了解的窗体的属性和常用公共控件的属性,及其设计操作和程序操作。 窗体的事件: 删除事件:先将事件页面里面的挂好的事件删除,再删后 阅读全文
posted @ 2016-09-18 09:03 Lovetolaugh 阅读(157) 评论(0) 推荐(0)
摘要: DBconnect.cs duizhan.cs using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace 对战{ 阅读全文
posted @ 2016-09-18 09:02 Lovetolaugh 阅读(227) 评论(0) 推荐(0)
摘要: 在操作数据库时,将数据方法封装为不同类,增加程序的可读性 提供数据连接对象的类 using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks 阅读全文
posted @ 2016-09-18 08:58 Lovetolaugh 阅读(145) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Data.SqlClient; namespace 阅读全文
posted @ 2016-09-18 08:55 Lovetolaugh 阅读(215) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data.SqlClient; namespace ConsoleApplication1 { class Program4 ... 阅读全文
posted @ 2016-09-18 08:53 Lovetolaugh 阅读(178) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data.SqlClient; namespace 操作数据库 { class Program { sta... 阅读全文
posted @ 2016-09-18 08:52 Lovetolaugh 阅读(124) 评论(0) 推荐(0)