上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要: [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 阅读(507) 评论(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 阅读(1437) 评论(0) 推荐(0)
摘要: 用的Microsoft.Office.Interop.Excel的ExportAsFixedFormat,将excel导出成pdf Workbook workBook = application.Workbooks.Open(sourcePath); workBook.ExportAsFixedFo 阅读全文
posted @ 2020-06-05 10:17 liuyong111 阅读(1917) 评论(2) 推荐(1)
摘要: 在触摸屏上操作,用户尽可能的操作越简单,步骤越少越好。比如单据保存成功后,不用弹出保存成功的提示框,用户点确定后再关闭。这样增加了用户的操作。 var _notifyIcon = new NotifyIcon { BalloonTipText = @"保存成功!", Text = @"Hello, 阅读全文
posted @ 2020-04-24 16:35 liuyong111 阅读(808) 评论(0) 推荐(0)
摘要: public class TextBoxExtHelper { public static string GetIsNullString(DependencyObject obj) { return (string)obj.GetValue(IsNullStringProperty); } publ 阅读全文
posted @ 2020-04-24 13:41 liuyong111 阅读(455) 评论(0) 推荐(0)
摘要: var strPath = @"D:\Test\4#新程序全兼容\4#新程序全兼容\Data"; string myConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + strPath + ";Extended Pr 阅读全文
posted @ 2020-04-24 10:39 liuyong111 阅读(600) 评论(0) 推荐(0)
摘要: MarkupExtension 标记扩展。wpf中已实现了很多MarkupExtension。如binding,x:StaticResource等等。通过继承MarkupExtension,我们可以自定义标记。 public class ColorExtend : MarkupExtension { 阅读全文
posted @ 2020-04-22 15:57 liuyong111 阅读(543) 评论(0) 推荐(0)
摘要: public class DecimalConverter:IValueConverter { public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInf 阅读全文
posted @ 2020-03-16 16:30 liuyong111 阅读(1992) 评论(2) 推荐(0)
摘要: WPF程序捕获全局异常,遇到未处理的异常,虽可以捕获,但是不能阻止程序退出。 AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledExcepti 阅读全文
posted @ 2019-12-31 14:46 liuyong111 阅读(940) 评论(0) 推荐(0)
摘要: 一、Pull Up Field 提取字段 多个类中有相同的字段,可以提取到父类中。 重构前: public class Engineer { public string name { get; set; } } public class Salesman { public string name { 阅读全文
posted @ 2019-12-27 14:36 liuyong111 阅读(1049) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 9 下一页