摘要: 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̶.̶ 阅读(285) 评论(0) 推荐(0)
摘要: 1 2 3 4 5 6 阅读全文
posted @ 2014-07-12 16:28 b̶i̶n̶g̶.̶ 阅读(381) 评论(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̶.̶ 阅读(190) 评论(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̶.̶ 阅读(188) 评论(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̶.̶ 阅读(1165) 评论(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̶.̶ 阅读(1493) 评论(0) 推荐(0)
摘要: 解决方案:手动添加Handler,因为e.Handled这个属性是用在路由事件中的,当某个控件得到一个RoutedEvent,就会检测Handled是否为true,为true则忽略该事件。//手动注册 this.AddHandler(MouseLeftButtonUpEvent, new Mouse... 阅读全文
posted @ 2014-07-07 18:53 b̶i̶n̶g̶.̶ 阅读(416) 评论(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̶.̶ 阅读(447) 评论(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̶.̶ 阅读(391) 评论(0) 推荐(0)
摘要: .NET技术交流群 199281001 .欢迎加入。 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Windows; ... 阅读全文
posted @ 2014-07-03 10:52 b̶i̶n̶g̶.̶ 阅读(1108) 评论(1) 推荐(0)