摘要: FlowDocument类型的对象R中使用的对象A,而对象A中的属性B的类型为ObservedCollection<T>,导致在使用XamlWriter.Save方法时报异常 调用的目标发生了异常。(TargetInvocationException)无法序列化泛型类型“System.Collect 阅读全文
posted @ 2019-07-09 09:02 Z_JRV1 阅读(376) 评论(0) 推荐(0) 编辑
摘要: 主界面注销 原理:开启一个新进程并关闭当前进程及相关进程。 Process sprs = new Process(); sprs.StartInfo.FileName = Application.ExecutablePath.Trim(); //启动的程序 sprs.Start(); Process 阅读全文
posted @ 2017-04-17 14:26 Z_JRV1 阅读(94) 评论(0) 推荐(0) 编辑
摘要: Action actionAddTxtDelegate = (x, y) => { y.AppendText(x.ToString() + "\r\n"); y.ScrollToCaret(); }; Action actionUpdateTxtDelegate = (x, y) ... 阅读全文
posted @ 2017-04-07 15:59 Z_JRV1 阅读(435) 评论(0) 推荐(0) 编辑
摘要: 1 /// 2 /// 将泛型集合转为Table 3 /// 4 /// 数据 5 /// 列 6 /// 标识该列为整数类型(用于排序) 7 /// 8 public static DataTable listToTable(List list, st... 阅读全文
posted @ 2017-03-23 16:46 Z_JRV1 阅读(126) 评论(0) 推荐(0) 编辑