上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 52 下一页
摘要: 如果你想在窗体上进行绘画。通常会使用以下方法. 方法1,利用控件或窗体的paint事件中的painEventArgs private void form1_Paint(object sender, PaintEventArgs e) { Graphics g = e.Graphics;//创建画板, } 方法2直接重载控件或窗体的OnPaint方法 protected override void... 阅读全文
posted @ 2019-03-16 22:03 enych 阅读(22262) 评论(0) 推荐(0) 编辑
摘要: StringBuilder sb = new StringBuilder(); ServiceController[] services = ServiceController.GetServices(); //需要添加引用程序程序集Serviceprocess foreach (ServiceController sController i... 阅读全文
posted @ 2019-03-16 18:56 enych 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-03-12 12:05 enych 阅读(1077) 评论(0) 推荐(0) 编辑
摘要: private void button2_Click(object sender, EventArgs e) { /***** * Select * from Win32_ LogicalDisk * Select * from Win32_share * Select... 阅读全文
posted @ 2019-03-11 09:47 enych 阅读(261) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABCDEFG { public class 依赖注入 { public void test() ... 阅读全文
posted @ 2019-03-09 11:57 enych 阅读(391) 评论(0) 推荐(0) 编辑
摘要: 浏览器 local Storage 是解决cookies存储空间不足问题. cookle中每条cookie的存储空间为4K. local storage 的存储空间一般为5M.这个根据浏览器变化. local storage 的值类型限定为string类型.如果存储内容多的话会导致页面变卡. loc 阅读全文
posted @ 2019-03-09 09:35 enych 阅读(1093) 评论(0) 推荐(0) 编辑
摘要: public List test(List EntityList) where T : class { return EntityList; } 阅读全文
posted @ 2019-03-08 17:51 enych 阅读(3422) 评论(0) 推荐(0) 编辑
摘要: private void button1_Click(object sender, EventArgs e) { //需要的数据是 销售订单, 客户名称,项目名称 List<DateTime> dateTimes = new List<DateTime>(); for (int i = 0; i < 阅读全文
posted @ 2019-03-08 08:11 enych 阅读(936) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-03-06 16:02 enych 阅读(9) 评论(0) 推荐(0) 编辑
摘要: string type = Request["type"]; //值为null; //?type= 值为""; //?type=12 值为"12" string type = Request["type"]; if (type!="A" && type!="B") { return HttpNotF... 阅读全文
posted @ 2019-03-04 11:58 enych 阅读(914) 评论(0) 推荐(0) 编辑
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 52 下一页