03 2019 档案
摘要:不知道 画笔 的像素是多少, 设置的是 画线的长度为1; 画笔的宽度 为1
阅读全文
摘要://指定数据前移 ssid private void button3_Click(object sender, EventArgs e) { StringBuilder sb = new StringBuilder(); string str = "686B666B686B666B706B5D9BA
阅读全文
摘要:ctr+shift+p 输入 configure language 进 en更改为zh-cn , 重启vscode即可 , 如果还不行,就安装插件
阅读全文
摘要:配置文件内容为 <?xml version="1.0" encoding="utf-8" ?> <configuration> </configuration> 在配置节点中添加connectionStrings节点 <?xml version="1.0" encoding="utf-8" ?> <
阅读全文
摘要:如果你想在窗体上进行绘画。通常会使用以下方法. 方法1,利用控件或窗体的paint事件中的painEventArgs private void form1_Paint(object sender, PaintEventArgs e) { Graphics g = e.Graphics;//创建画板, } 方法2直接重载控件或窗体的OnPaint方法 protected override void...
阅读全文
摘要:StringBuilder sb = new StringBuilder(); ServiceController[] services = ServiceController.GetServices(); //需要添加引用程序程序集Serviceprocess foreach (ServiceController sController i...
阅读全文
摘要:private void button2_Click(object sender, EventArgs e) { /***** * Select * from Win32_ LogicalDisk * Select * from Win32_share * Select...
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABCDEFG { public class 依赖注入 { public void test() ...
阅读全文
摘要:浏览器 local Storage 是解决cookies存储空间不足问题. cookle中每条cookie的存储空间为4K. local storage 的存储空间一般为5M.这个根据浏览器变化. local storage 的值类型限定为string类型.如果存储内容多的话会导致页面变卡. loc
阅读全文
摘要:public List test(List EntityList) where T : class { return EntityList; }
阅读全文
摘要:private void button1_Click(object sender, EventArgs e) { //需要的数据是 销售订单, 客户名称,项目名称 List<DateTime> dateTimes = new List<DateTime>(); for (int i = 0; i <
阅读全文
摘要:string type = Request["type"]; //值为null; //?type= 值为""; //?type=12 值为"12" string type = Request["type"]; if (type!="A" && type!="B") { return HttpNotF...
阅读全文
摘要:string str = "2019-01"; //name: "2019-01月" str = str.Substring(str.Length - 2, 2); //把第一个0替换为空 var t = Convert.ToInt32(str).ToString();
阅读全文
摘要://默认当年1月1号 ViewBag.time1 = new DateTime(DateTime.Now.Year, 1, 1).ToString("yyyy-MM-dd"); ViewBag.time2 = DateTime.Now.ToString("yyyy-MM-dd"); new Date
阅读全文