随笔分类 -  C# functions

摘要:交换数据不闪烁 ,复制数据 删除选中的行插入数据会有明显的闪烁 int rowIndex = dgv1.SelectedRows[0].Index; /*得到当前选中行的索引*/rowIndex = 0; /*表示当前行是第1行*/rowIndex = dgv1.Rows.Count - 1; /* 阅读全文
posted @ 2021-11-26 12:13 XE2011 阅读(684) 评论(0) 推荐(0) 编辑
摘要:完整的ini类 https://files.cnblogs.com/files/xe2011/IniFiles_2021-9-22-21_52_48.rar 使用 引用 using IniFiles; 实例化 IniFile ini = new IniFile(" c:\app.ini"); you 阅读全文
posted @ 2020-07-15 16:00 XE2011 阅读(1034) 评论(0) 推荐(0) 编辑
摘要:参考 https://www.jb51.net/article/75156.htmusing System.Runtime.InteropServices;using System.Diagnostics;using System.Reflection;namespace System{ /* * 只能运行一个实例_单开_ * 参考 https://www.jb51.ne... 阅读全文
posted @ 2020-03-31 16:51 XE2011 阅读(309) 评论(0) 推荐(0) 编辑
摘要:/// /// 转换成时间 00:00:00/// /// /// public string time(long duration){ TimeSpan t = new TimeSpan(0, 0, Convert.ToInt32(duration)); //string str = "00:00:00"; return $"{t.Hours:00}:{t.Minutes:... 阅读全文
posted @ 2020-01-11 17:02 XE2011 阅读(1127) 评论(0) 推荐(1) 编辑
摘要:class MidString { //有异常发生! /// /// 搜索字符串 /// /// 目标字符串 /// 之前字符串 /// 之后字符串 /// 获取两个字符串中间的字符串 ... 阅读全文
posted @ 2019-12-29 20:42 XE2011 阅读(1558) 评论(0) 推荐(0) 编辑
摘要:https://files.cnblogs.com/files/xe2011/WinAppINI20191226232153.rar /* 2019年12月26日 22:31:38 * [info] * group = a,b,c,d * * 需求 修改ini配置信息的group值 * * 1添加: 阅读全文
posted @ 2019-12-26 23:22 XE2011 阅读(572) 评论(0) 推荐(0) 编辑
摘要:只要有一个字符和其他字符不一样,结果为假,不再继续往下判断。 当判断到最后依然没有不一样的,则当前字符串由同一个字符组成的 阅读全文
posted @ 2019-09-09 23:09 XE2011 阅读(2035) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示