摘要: 1引用 using System.IO;2.代码实现 var path = Directory.GetCurrentDirectory(); // 获得运行文件路径 // var path2 = System.Environment.CurrentDirectory; // 获得运行文件路径 // 阅读全文
posted @ 2020-07-21 16:32 Besos 阅读(1717) 评论(0) 推荐(0)
摘要: 1.设置Combox属性: DropDownStyle:DropDown 2.添加TextUpdate事件 3.下列为Name = cb_material 的 combox 控件 private void cb_material_TextUpdate(object sender, EventArgs 阅读全文
posted @ 2020-07-21 16:14 Besos 阅读(1112) 评论(0) 推荐(0)
摘要: 1.这里用CellMouseClick鼠标点击事件 private void DataGridView1_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e) { //if (e.Button == MouseButtons. 阅读全文
posted @ 2020-07-21 15:45 Besos 阅读(475) 评论(0) 推荐(0)
摘要: 下面是简单例子 1引用Mapster.dll包 2.初始化,设置映射规则 3.下面有两个实体 ModelA 、ModelB class ModelA{ public string UserId{get;set;} public string Remark{get;set;} } class Mode 阅读全文
posted @ 2020-07-21 14:57 Besos 阅读(2670) 评论(0) 推荐(0)
摘要: 1.网上下载Spire.pdf.dll和Spire.License.dll 文件 2.程序引用 3.定义一个方法执行 public void pdftoWord(){ var path = "..."; // pdf文件路径 var savepath = "..."; // 存储路径+文件名称+。d 阅读全文
posted @ 2020-07-21 12:25 Besos 阅读(2383) 评论(0) 推荐(0)