摘要:
1 public static class IListUtil 2 { 3 /// 4 /// 将集合类转换成DataTable 5 /// 6 /// 集合 7 /// 8 public static DataTable AsDataTab... 阅读全文
摘要:
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 ... 阅读全文
摘要:
1 2 3 4 5 6 阅读全文
摘要:
为网卡配置静态IP地址编辑文件/etc/network/interfaces:sudo vi /etc/network/interfaces并用下面的行来替换有关eth0的行:# The primary network interfaceauto eth0iface eth0 inet static... 阅读全文
摘要:
1.查看系统版本 cat /proc/version cat /etc/issue2.查看IPifconfig3.重启 shutdown -r now4.更多 http://wenku.baidu.com/view/b3472f96daef5ef7ba0d3cbc.html5.查看libc版本apt... 阅读全文
摘要:
1 using System; 2 using System.Threading; 3 using System.Windows; 4 using System.Windows.Controls; 5 using WangCai.Common; 6 7 namespace Wang... 阅读全文
摘要:
private const int INTERNET_CONNECTION_MODEM = 1; private const int INTERNET_CONNECTION_LAN = 2; private const int INTERNET_CONNE... 阅读全文
摘要:
解决方案:手动添加Handler,因为e.Handled这个属性是用在路由事件中的,当某个控件得到一个RoutedEvent,就会检测Handled是否为true,为true则忽略该事件。//手动注册 this.AddHandler(MouseLeftButtonUpEvent, new Mouse... 阅读全文
摘要:
1 #region 打开键盘的键 2 const uint KEYEVENTF_EXTENDEDKEY = 0x1; 3 const uint KEYEVENTF_KEYUP = 0x2; 4 5 [DllImport("user3... 阅读全文
摘要:
[DllImport("user32.dll")] static extern bool GetLastInputInfo(ref LASTINPUTINFO plii); public static long GetIdleTick() {... 阅读全文