随笔分类 -  C# / C#基础

摘要:本来想自己整理一份,但找到了一份挺全的,就直接用到直接找吧 A0 ………… 通用A1 ………… Form 类A2 ………… Control 类A3 ………… MessageBox 类A4 ………… Button 类A5 ………… Label 类 LinkLabel 类A6 ………… TextBox 阅读全文
posted @ 2020-05-23 10:33 liessay 阅读(276) 评论(0) 推荐(0)
摘要:刚学习设计模式,还不是太了解,感觉只有多数据库的情况下才用的到,待学习 首先创建空白解决方案,依次创建类库Model,IDAL,SqlServerDAL,DALFactory,BLL,DBUtility,并创建一个窗体程序 首先在窗体程序的App.Config中添加以下设置 <appSettings 阅读全文
posted @ 2020-05-14 10:52 liessay 阅读(446) 评论(0) 推荐(1)
摘要:创建类库,并添加新窗体,加入以下方法 public static string setText(string str) { return str; } 编译后把生成的DLL文件放入新项目的bin目录,新项目需要using System.Reflection窗口放入2个button,并添加实现 //通 阅读全文
posted @ 2020-05-12 15:32 liessay 阅读(446) 评论(0) 推荐(1)
摘要:Clear() 从 List<T> 中移除所有元素。 List<Employees> employees = new List<Employees>(); employees.Add(new Employees { Id = 1, Name = "Nancy.Davolio", City = "Se 阅读全文
posted @ 2020-04-24 12:47 liessay 阅读(11708) 评论(0) 推荐(2)
摘要:List集合查询数据 List<Employees> employees = new List<Employees>(); employees.Add(new Employees { Id = 1, Name = "Nancy.Davolio", City = "Seattle", BirthDat 阅读全文
posted @ 2020-04-24 11:08 liessay 阅读(33666) 评论(0) 推荐(1)
摘要:所有操作基于以下类 class Employees { public int Id { get; set; } public string Name { get; set; } public string City { get; set; } public DateTime BirthDate { 阅读全文
posted @ 2020-04-24 10:08 liessay 阅读(13968) 评论(0) 推荐(2)
摘要:所有操作基于以下类 class Employees { public int Id { get; set; } public string Name { get; set; } public string City { get; set; } public DateTime BirthDate { 阅读全文
posted @ 2020-04-24 09:26 liessay 阅读(2754) 评论(0) 推荐(1)
摘要:Form2 Form1 效果 阅读全文
posted @ 2019-12-10 08:35 liessay 阅读(245) 评论(0) 推荐(1)