摘要: https://msdn.microsoft.com/zh-cn/library/system.windows.forms.datagridview.datasource.aspx 阅读全文
posted @ 2018-08-31 10:10 Yolana 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 增加:insert into 数据表(字段1,字段2,字段3) values('值1','值2','值3')删除:delete from 数据表 where id=你要删除的数据id修改:update 数据表 set 字段1=‘值1’,字段2=‘值2’,字段3=‘值3’ where id=你要修改的 阅读全文
posted @ 2018-08-30 16:56 Yolana 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 静态类: 在类(class)上加入static修饰, 表示该类无法被实例化,并且该类中,无法实例化变量或函数。 那么如果要在此静态类中添加函数、变量、属性,则必须都是静态的。 静态类的主要特性: 1:仅包含静态成员。 2:无法实例化。 3:静态类的本质,是一个抽象的密封类,所以不能被继承,也不能被实 阅读全文
posted @ 2018-08-30 15:43 Yolana 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 1.接口的特点 接口的定义是指定一组函数成员而不实现成员的引用类型,其它类型和接口可以继承接口。定义还是很好理解的,但是没有反映特点,接口主要有以下特点: (1)通过接口可以实现多重继承,C#接口的成员不能有public、protected、internal、private等修饰符。原因很简单,接口 阅读全文
posted @ 2018-08-30 10:56 Yolana 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 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.... 阅读全文
posted @ 2018-07-31 11:18 Yolana 阅读(448) 评论(0) 推荐(0) 编辑