- 博客(3)
- 收藏
- 关注
转载 .net - dispatcher vs thread
Dispatcher Multiple tasks inone thread. you can't update any UI controls from a thread that doesn'town the control. very Visual (Button, Textbox, Combobox, etc.) inherits from DispacterObjec
2013-12-23 17:18:32 1280
原创 C++ - 数值比较numerical comparison
在工作碰到好几次不同type的integer/value比较出错,导致奇怪的bug。很小的问题,却不容忽视。 看几个例子.原来我的想法是他们bitwise level是一样的,这4个比较应该都是true才对。 char m_costBasis1; UINT1 m_costBasis2;//define unsigned char UINT1 UINT2 l_BasisNum; //d
2013-12-20 14:18:39 875
原创 WPF - MVP模式的几个debug小技巧
WPF的开发,不少都用的是MVP模式(或者修正版的MVPC模式)。这种模式下,很多logic的处理都关联到presenter上。如果为了presenter重用或者logic重用,调试很麻烦。 这里分享几个实用的小技巧。 #1 加一个TestLogic,把它和你的目标presenter的目标property关联。这样很容易跟踪什么时候这个属性被修改了。 #2 替换掉原来的pr
2013-12-03 12:58:44 1522
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人