摘要: using System;using System.Collections.Generic;using System.Web;using System.IO;using System.Text;using System.Web.Security;using System.Xml;public cla... 阅读全文
posted @ 2015-07-31 03:59 sekon 阅读(1726) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Data.SqlClient;using System.IO;using System.Text;using S... 阅读全文
posted @ 2015-07-29 09:55 sekon 阅读(285) 评论(0) 推荐(0) 编辑
摘要: //测试网络状态 Ping p = new Ping(); string pAddr = ConfigurationManager.AppSettings["pingAddr"]; //创建Ping对象p ... 阅读全文
posted @ 2015-07-26 12:45 sekon 阅读(448) 评论(0) 推荐(0) 编辑
摘要: using System.Linq;using System.Text;using System.Threading.Tasks;using System.Reflection;using TrustDevKit.Accident_WebService;using TrustDevKit.local... 阅读全文
posted @ 2015-07-23 22:17 sekon 阅读(301) 评论(0) 推荐(0) 编辑
摘要: string dbPath="Data Source=D:\\test.db3"; using (SQLiteConnection cnn = new SQLiteConnection(dbPath)) { ... 阅读全文
posted @ 2015-07-23 11:27 sekon 阅读(269) 评论(0) 推荐(0) 编辑
摘要: TemplateBinding是Binding的一个轻量级版本,它失去了成熟版本Binding的很多功能,比如继承内容引用(inheritence context referencing),RelativeSource引用,还有通过IValueConverter/TypeConverter机制的动态... 阅读全文
posted @ 2015-07-14 08:34 sekon 阅读(424) 评论(0) 推荐(0) 编辑
摘要: 当一个Binding有明确的数据来源时可以通过为Source或ElementName赋值的办法让Binding与之关联,有的时候由于不能确定Source的对象叫什么名字,但知道它与作为Binding目标的对象在UI布局上有相对关系,比如控件自己关联自己的某个数据、关联自己某级容器的数据,就要使用Bi... 阅读全文
posted @ 2015-07-14 08:33 sekon 阅读(299) 评论(0) 推荐(0) 编辑
摘要: NEMA协议的由来NMEA协议是为了在不同的GPS(全球定位系统)导航设备中建立统一的BTCM(海事无线电技术委员会)标准,由美国国家海洋电子协会(NMEA-The National Marine Electronics Associa-tion)制定的一套通讯协议。GPS接收机根据NMEA-018... 阅读全文
posted @ 2015-06-30 00:43 sekon 阅读(11697) 评论(0) 推荐(0) 编辑
摘要: 在 Windows Presentation Foundation (WPF) 中,使用统一资源标识符 (URI) 标识和加载文件的方式有很多,包括:指定当应用程序第一次启动时显示的用户界面 (UI)。加载图像。导航到页加载不可执行的数据文件。此外,可以使用 URI 标识和加载位于各种位置的文件,这... 阅读全文
posted @ 2015-06-27 01:59 sekon 阅读(2862) 评论(0) 推荐(1) 编辑
摘要: SQL联合查询(内联、左联、右联、全联)语法概述: 联合查询效率较高,举例子来说明联合查询:内联inner join 、左联left outer join 、右联right outer join 、全联full outer join 的好处及用法。 联合查询效率较高,以下例子来说明联合查询(内联... 阅读全文
posted @ 2015-04-21 08:35 sekon 阅读(455) 评论(0) 推荐(0) 编辑