上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页
摘要: Adelegateis a type that safely encapsulates a method, similar to a function pointer in C and C++.Unlike C function pointers, delegates are object-orie... 阅读全文
posted @ 2013-02-01 15:55 chuwachen 阅读(314) 评论(0) 推荐(0)
摘要: How to convert between URI and normal file path:Convert normal file path to URI:Uri uri = new Uri(@"c:\Documents\myfile");Convert URI to normal file p... 阅读全文
posted @ 2013-01-30 14:12 chuwachen 阅读(119) 评论(0) 推荐(0)
摘要: In a timer handler (function), we should set a flag to avoid function re-entering, for example:bool bProcessing = false;void onTimer(){if (bProcessing... 阅读全文
posted @ 2013-01-22 15:18 chuwachen 阅读(108) 评论(0) 推荐(0)
摘要: If you want to customize a scrollbar for a control such as listbox as follows:You can define xaml as follows (wrap listbox with a scrollviewer): ... 阅读全文
posted @ 2013-01-21 17:17 chuwachen 阅读(101) 评论(0) 推荐(0)
摘要: When creating certificate via KeyChain in an old mac, then you want to use it in a new mac, you may see the following warning "valid signing identity ... 阅读全文
posted @ 2013-01-14 11:58 chuwachen 阅读(117) 评论(0) 推荐(0)
摘要: Prepare Provisioning profile:Keychain Access-->Certificate Assistant-->Request a Certificate from a Certificate Authority-->input email address (App I... 阅读全文
posted @ 2013-01-10 12:00 chuwachen 阅读(195) 评论(0) 推荐(0)
摘要: Usually you should define a decorator class for UI, for example,// if you want to update UI automatically when property "Title" is change, we need add... 阅读全文
posted @ 2012-12-20 18:28 chuwachen 阅读(159) 评论(0) 推荐(0)
摘要: If a class only has variables that already support serialize/deserialize such as string, int, and etc, we just need add the attribute [Serializabe] to... 阅读全文
posted @ 2012-12-20 17:52 chuwachen 阅读(175) 评论(0) 推荐(0)
摘要: Control的Invoke和BeginInvoke:Control.Invoke方法(Delegate):在拥有此控件的基础窗口句柄的线程(UI thread)上执行指定的委托。Control.BeginInvoke方法(Delegate):在创建控件的基础句柄所在线程(UI thread)上异步... 阅读全文
posted @ 2012-11-12 18:44 chuwachen 阅读(151) 评论(0) 推荐(0)
摘要: PrincipalContext context = new PrincipalContext(ContextType.Domain); bool isValid = context.ValidateCredentials(userName, password); 阅读全文
posted @ 2012-11-12 16:58 chuwachen 阅读(128) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页