摘要: 1 public static class IListUtil 2 { 3 /// 4 /// 将集合类转换成DataTable 5 /// 6 /// 集合 7 /// 8 public static DataTable AsDataTab... 阅读全文
posted @ 2014-07-14 11:24 b̶i̶n̶g̶.̶ 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 1 public void Test(){2 3 var query = from a in A join b in B on A.Id equals B.Id into c4 from d in c.DefaultIfEmpty()5 ... 阅读全文
posted @ 2014-07-12 16:42 b̶i̶n̶g̶.̶ 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 1 2 3 4 5 6 阅读全文
posted @ 2014-07-12 16:28 b̶i̶n̶g̶.̶ 阅读(373) 评论(0) 推荐(0) 编辑
摘要: 为网卡配置静态IP地址编辑文件/etc/network/interfaces:sudo vi /etc/network/interfaces并用下面的行来替换有关eth0的行:# The primary network interfaceauto eth0iface eth0 inet static... 阅读全文
posted @ 2014-07-09 19:10 b̶i̶n̶g̶.̶ 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 1.查看系统版本 cat /proc/version cat /etc/issue2.查看IPifconfig3.重启 shutdown -r now4.更多 http://wenku.baidu.com/view/b3472f96daef5ef7ba0d3cbc.html5.查看libc版本apt... 阅读全文
posted @ 2014-07-09 13:00 b̶i̶n̶g̶.̶ 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Threading; 3 using System.Windows; 4 using System.Windows.Controls; 5 using WangCai.Common; 6 7 namespace Wang... 阅读全文
posted @ 2014-07-07 18:59 b̶i̶n̶g̶.̶ 阅读(1110) 评论(0) 推荐(0) 编辑
摘要: private const int INTERNET_CONNECTION_MODEM = 1; private const int INTERNET_CONNECTION_LAN = 2; private const int INTERNET_CONNE... 阅读全文
posted @ 2014-07-07 18:57 b̶i̶n̶g̶.̶ 阅读(1421) 评论(0) 推荐(0) 编辑
摘要: 解决方案:手动添加Handler,因为e.Handled这个属性是用在路由事件中的,当某个控件得到一个RoutedEvent,就会检测Handled是否为true,为true则忽略该事件。//手动注册 this.AddHandler(MouseLeftButtonUpEvent, new Mouse... 阅读全文
posted @ 2014-07-07 18:53 b̶i̶n̶g̶.̶ 阅读(397) 评论(0) 推荐(0) 编辑
摘要: 1 #region 打开键盘的键 2 const uint KEYEVENTF_EXTENDEDKEY = 0x1; 3 const uint KEYEVENTF_KEYUP = 0x2; 4 5 [DllImport("user3... 阅读全文
posted @ 2014-07-07 11:21 b̶i̶n̶g̶.̶ 阅读(434) 评论(0) 推荐(0) 编辑
摘要: [DllImport("user32.dll")] static extern bool GetLastInputInfo(ref LASTINPUTINFO plii); public static long GetIdleTick() {... 阅读全文
posted @ 2014-07-03 11:29 b̶i̶n̶g̶.̶ 阅读(368) 评论(0) 推荐(0) 编辑