上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: public class KdMqttClient { private static KdMqttClient MQInstance; private MqttClient MQClient; private string clientId; public delegate void Receive 阅读全文
posted @ 2021-02-21 21:57 liuyong111 阅读(1196) 评论(0) 推荐(0) 编辑
摘要: nuget安装Faker 用法: 新建一个model public class Model { public string Name { get; set; } public int Age { get; set; } } 使用Faker给Model赋值 private void Button_Cl 阅读全文
posted @ 2020-12-30 16:15 liuyong111 阅读(721) 评论(0) 推荐(0) 编辑
摘要: 效果图: 添加扩展类 public static class DataGridExtend { /// <summary> /// 获取DataGrid控件单元格 /// </summary> /// <param name="dataGrid">DataGrid控件</param> /// <pa 阅读全文
posted @ 2020-11-18 13:58 liuyong111 阅读(2062) 评论(0) 推荐(0) 编辑
摘要: vs2019更新到16.8.0 安装.net 5 sdk 下载地址 https://dotnet.microsoft.com/download/dotnet/5.0 安装完成后,打开PowerShell,进入希望生成的wpf项目文件夹。 例: 然后再输入dotnet new wpf -o Net5W 阅读全文
posted @ 2020-11-12 16:38 liuyong111 阅读(2600) 评论(1) 推荐(0) 编辑
摘要: ListView有时加载个几百条数据都要好几秒钟。 1.ItemsPanelTemplate中用的StackPanel,改成VirtualizingStackPanel。 <ListView ItemsSource="{Binding WOList}" > <ListView.ItemsPanel> 阅读全文
posted @ 2020-08-24 16:58 liuyong111 阅读(1453) 评论(0) 推荐(1) 编辑
摘要: vs中新建扩展项目 添加Command文件 修改command配置 IDM_VS_CTXT_ITEMNODE是将扩展添加到类文件右键菜单中。 右键点击后,会触发comman中的Execute方法 上面这张图是扩展包适用的目标visual studio 版本[16,17)适用于vs2019. 编译好扩 阅读全文
posted @ 2020-07-08 16:08 liuyong111 阅读(527) 评论(0) 推荐(0) 编辑
摘要: [Table("School")] public class School : Entity<int> { public string Name { get; set; } public virtual List<Student> Students { get; set; } } [Table("S 阅读全文
posted @ 2020-07-08 15:23 liuyong111 阅读(464) 评论(0) 推荐(0) 编辑
摘要: Abp级联查询,主要要设置主子表的外键关系。 [Table("School")] public class School : Entity<int> { public string Name { get; set; } public virtual List<Student> Students { 阅读全文
posted @ 2020-07-08 15:16 liuyong111 阅读(1311) 评论(0) 推荐(0) 编辑
摘要: 用的Microsoft.Office.Interop.Excel的ExportAsFixedFormat,将excel导出成pdf Workbook workBook = application.Workbooks.Open(sourcePath); workBook.ExportAsFixedFo 阅读全文
posted @ 2020-06-05 10:17 liuyong111 阅读(1719) 评论(0) 推荐(1) 编辑
摘要: 在触摸屏上操作,用户尽可能的操作越简单,步骤越少越好。比如单据保存成功后,不用弹出保存成功的提示框,用户点确定后再关闭。这样增加了用户的操作。 var _notifyIcon = new NotifyIcon { BalloonTipText = @"保存成功!", Text = @"Hello, 阅读全文
posted @ 2020-04-24 16:35 liuyong111 阅读(767) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 9 下一页