摘要: 1.按照官方教程设置 2.如果还不显示,在不显示的汉字前面加上一个“空格”,汉字就会正常显示。 阅读全文
posted @ 2019-06-07 08:42 I'm CY 阅读(442) 评论(0) 推荐(0) 编辑
摘要: 1.新建文件dot.bat 放到 d:\,内容如下: 2.在notepad++“运行”中添加新命令 输入:"d:\dot.bat" "$(FULL_CURRENT_PATH)" 保存为 dotpng 3.新建1.gv文件,输入内容 4.点击“运行“中的dotpng 5.同1.gv目录生成了1.png 阅读全文
posted @ 2019-06-07 08:35 I'm CY 阅读(2050) 评论(0) 推荐(0) 编辑
摘要: https://stackoverflow.com/questions/695752/how-to-design-a-product-table-for-many-kinds-of-product-where-each-product-has-m You have at least these fi 阅读全文
posted @ 2019-03-08 17:09 I'm CY 阅读(223) 评论(0) 推荐(0) 编辑
摘要: CommandParameter="{Binding}"改为CommandParameter="{Binding DataContext,RelativeSource={RelativeSource Self}}" ... 阅读全文
posted @ 2019-01-08 16:06 I'm CY 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 参考: https://wpf.2000things.com/2017/04/06/1204-using-a-datatrigger-to-change-content-in-a-contentpresenter/ ContentControl通过DataTrigger进行切换模板时,原来绑定的模板 阅读全文
posted @ 2018-12-18 21:08 I'm CY 阅读(609) 评论(0) 推荐(0) 编辑
摘要: When calling DbContext.SaveChanges, I get a DbUpdateException:An unhandled exception of type 'System.Data.Entity.Infrastructure.DbUpdateException' occ 阅读全文
posted @ 2018-04-03 15:12 I'm CY 阅读(294) 评论(0) 推荐(0) 编辑
摘要: https://stackoverflow.com/questions/45978173/system-valuetuple-version-0-0-0-0-required-for-add-migration-on-net-4-6-1-cla 阅读全文
posted @ 2017-11-27 17:49 I'm CY 阅读(413) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/fish-li/archive/2012/05/07/2486840.html细说ASP.NET Windows身份认证http://www.cnblogs.com/allenlizq/archive/2009/02/20/1395200.html如何验 阅读全文
posted @ 2016-10-26 13:59 I'm CY 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 应该是: {"Message":"Hello World"} 结果是:" {\"Message\":\"Hello World\"}" 正确的写法是: [WebGet(UriTemplate = "hello")] public void SayHello() { SimpleMessage mes 阅读全文
posted @ 2016-05-31 18:19 I'm CY 阅读(1246) 评论(0) 推荐(0) 编辑
摘要: 把光标放置在黑块的后面在键盘上按左方向键,则黑块变灰色(为选中状态)然后ctrl+shift+s, 出现窗口“apply styles"点击"reapply", 搞定,若保存后再打文档时仍出现黑块,重复上述操作,若干次后应该就可以了 阅读全文
posted @ 2016-02-16 09:28 I'm CY 阅读(2602) 评论(0) 推荐(0) 编辑
摘要: C# javascript 采用 RSA 加密解密1.C#提供公钥2.javascript用公钥加密3.C#用私钥解密4.javascript 类库 https://www.pidder.de/pidcrypt/ prot... 阅读全文
posted @ 2015-08-17 17:46 I'm CY 阅读(1001) 评论(0) 推荐(0) 编辑
摘要: http://www.hanselman.com/blog/ListOfNETDependencyInjectionContainersIOC.aspxI'm trying to expand my mind around dependency injection in .NET (beyond t... 阅读全文
posted @ 2015-03-18 21:39 I'm CY 阅读(224) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/ranbolwb/article/details/18555847 function isIE() { //ie? if (!!window.ActiveXObject || "ActiveXObject" in wind... 阅读全文
posted @ 2014-09-19 21:42 I'm CY 阅读(249) 评论(0) 推荐(0) 编辑
摘要: http://social.msdn.microsoft.com/Forums/vstudio/en-US/d0bcb415-fb1e-42e4-90f8-c43a088537fb/aborting-a-long-running-task-in-tpl?forum=parallelextensionsI hesitate to show this :), but if you really did want to use aborts, you could do something like:int Foo(CancellationTokentoken){Threadt=Thread.Curr 阅读全文
posted @ 2013-11-14 22:48 I'm CY 阅读(226) 评论(0) 推荐(0) 编辑
摘要: http://msdn.microsoft.com/en-us/library/dd537607.aspxusing System;using System.Collections.Concurrent;using System.Threading;using System.Threading.Tasks;public class Example{ public static void Main() { var tokenSource = new CancellationTokenSource(); var token = tokenSource.Token; ... 阅读全文
posted @ 2013-08-27 23:43 I'm CY 阅读(353) 评论(0) 推荐(0) 编辑
摘要: I'd suggest checking for an inner exception. If there isn't one, check your logs for the exception that occurred immediately prior to this one.This isn't a web-specific exception, I've also encountered it in desktop-app development. In short, what's happening is that the thread r 阅读全文
posted @ 2013-08-19 22:11 I'm CY 阅读(1555) 评论(0) 推荐(0) 编辑
摘要: Temp 阅读全文
posted @ 2013-05-31 17:31 I'm CY 阅读(187) 评论(0) 推荐(0) 编辑
摘要: TEMP 阅读全文
posted @ 2013-05-31 17:31 I'm CY 阅读(120) 评论(0) 推荐(0) 编辑
摘要: de4dot + cecil 阅读全文
posted @ 2013-05-30 17:26 I'm CY 阅读(198) 评论(0) 推荐(0) 编辑
摘要: public partial class Employee { partial void OnCreated() { this._ExTable = new EntitySet<ExTable>(null, null); } private EntitySet<ExTable> _ExTable; [Association(Storage = "_ExTable", ThisKey = "EmployeeId", OtherKey = "EmployeeId")] publi... 阅读全文
posted @ 2013-05-30 17:18 I'm CY 阅读(334) 评论(0) 推荐(0) 编辑
摘要: http://stackoverflow.com/questions/12424537/why-ienumerablet-is-defined-as-ienumerableout-t-not-ienumerabletThe out type parameter specifier denotes covariance.In practice,If I define two interfaces.ISomeInterface<T>{}ISomeCovariantInterface<out T>{}Then, I implement them like this.SomeC 阅读全文
posted @ 2013-05-17 10:40 I'm CY 阅读(257) 评论(0) 推荐(0) 编辑
摘要: http://blogs.msdn.com/b/chrishays/archive/2004/07/23/horizontaltables.aspxQuestion:Does Reporting Services support horizontal tables (fixed rows and dynamic columns)?Answer:There is no native "horizontal table" report item, but simple horizontal tables can be simulated using Matrix.Step 1: 阅读全文
posted @ 2013-04-26 14:39 I'm CY 阅读(5433) 评论(0) 推荐(0) 编辑
摘要: Person 信息系统中人,所有人的信息就是Person对象的属性了,例如:FirstName,LastName,Card等等。Employee雇员信息, Person在一个公司的任职情况,例如:部门、级别等等。在多数的信息系统在设计时,Person 与 Employee 是设计在一起的,一般是够用的,但是再处理一些情况就力不从心了1.入职-->离职 ---- 再入职-->离职----再入职-->离职2.集团公司,分公司独立核算,有些人身兼数职。如果用Person-Employee分开设计的方式,这些问题就迎刃而解了Employee 可以定义为 Person 在一段期间的工作 阅读全文
posted @ 2013-04-18 22:42 I'm CY 阅读(214) 评论(0) 推荐(0) 编辑
摘要: HRMS中我们请假、加班是两大类,小类有很多,类如:请年假、请补休、请病假、节假日加班,平时加班等等这些都是根据业务进行分类,方便统计,这可好可以认为是一个维度在实际运行过程中有一些情况需要处理,就拿年假来说对说员工的年假可能休,可能作废,可能补工资等待,这些情况下加分类固然能解决问题,但是就增加了统计分析的难度。从统计分析的角度来看,最常用统计可能为:剩余年假、剩余加班等等这里我们加上财务的一些方法来处理1.加上科目(Account)概念:年假、加班2.加上借贷最后的数据行可能行如:StartData,Amount,BusinessTypeId,AccountId,DebitAndCredi 阅读全文
posted @ 2013-04-16 21:26 I'm CY 阅读(210) 评论(0) 推荐(0) 编辑
摘要: [Serializable]public class MyViewModel : IEditableObject{ [NonSerialized] private object[] _copy; public MyViewModel() { Name = string.Empty; } public int Age { get; set; } public string Name { get; set; } public void BeginEdit() { //take a copy of curren... 阅读全文
posted @ 2013-04-14 21:36 I'm CY 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 就两行代码,弄了我一天,上火 [Export(typeof(IWindowManager))] public class AddInWindowManager : WindowManager { protected override System.Windows.Window EnsureWindow(object model, object view, bool isDialog) { var window = base.EnsureWindow(model, view, isDialog); wind... 阅读全文
posted @ 2013-04-13 13:03 I'm CY 阅读(483) 评论(0) 推荐(0) 编辑
摘要: 从人的生物属性来说:早上是身体与脑袋都处于最佳状态。从我自身来说:不论晚上睡眠质量如何,早上我的精神最好,下午和晚上都不行,也不能用来思考,一想东西就犯困。我们家孩子也是:早上最安静,最乖,最懂事,下午就不如早上。以前不论别人怎么说,自己都意识不到,今天自己算是顿悟了。接下来就是安排自己的工作与生活了,很简单:将自己需要进行思考与分析等宏观的内容全部安排到上午。将解决问题与寻找解决问题方法的内容全部安排到下午或晚上。如果在节假日有自己的事要分析,也要安排在上午,这一点很重要。google的日历是个好工具,要好好利用用两种颜色来标注一下记录,可以提高效率 阅读全文
posted @ 2013-03-31 12:22 I'm CY 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 多套账之间要求隔离,每套帐的功能都一样,每一个套账就相当于一个分公司有两个方案:1.每加入一个分公司,就创建一个database,用来存储一个公司的业务。2.给每一个需要分开的表加上DbId字段用来区分,相当于分库存储。方案1:考虑到未来大数据量存储方案2:简单够用,没有考虑到未来大数据存储(未来有多远????,未来会变成什么样,也不知)优选方案2:这个设计目的是针对集团-分公司,分公司独立核算模式,分公司的业务好解决,但到最后基本上会涉及到集团层面的综合分析这要求有查询的条件统计,例如:部门“01”表示行政部,应该所有的分公司的部门“01”都表示行政部,只有这样,统计结果才有意义这延伸出一个 阅读全文
posted @ 2013-03-26 16:58 I'm CY 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 最近用 windows8 ,刚开始很不习惯,用了两天,慢慢的喜欢上了这种风格公司的产品,级别高的栏目很多(常用的其实也很少),级别低的栏目很少。借鉴 windows8 的这种布局,常用的用大标表达如同 windows8 中的“开始”,不常用就如同 windows8 k中的“所有应用”,可供检索,而系统原本的主界面就如同 windows8 “桌面”。对于务实的人来说,没用。但是,用户千千万,谁用谁知道。 阅读全文
posted @ 2013-03-24 12:57 I'm CY 阅读(202) 评论(0) 推荐(0) 编辑
摘要: Winform 中放置 ElementHost 控件加载 wpf 的 UserControl在 WPF UserControl 中获取 winform 的方法 public partial class CrlDefinition : UserControl { public CrlDefinition() { InitializeComponent();this.Loaded += CrlDefinition_Loaded; } void CrlDefinition_Loaded(object sende... 阅读全文
posted @ 2013-03-24 11:38 I'm CY 阅读(356) 评论(0) 推荐(0) 编辑