摘要:
最近,遇到一个需求,就是每 30 秒更新一次 GPS 位置,在测试过程中,发现在系统待机后,更新 GPS 位置就不能正常运行了,搜索后,发现如下的解决方案,实际应用了之后,有效,赞!!!http://stackoverflow.com/questions/873816/keep-windows-mobile-app-running-in-standby-mode public const int PPN_UNATTENDEDMODE = 0x0003; public const int POWER_NAME = 0x00000001; public const int POW... 阅读全文
摘要:
今天看了一个源代码,看到里面有这么一段[MetadataType(typeof(FormMetaData))] public partial class Form { [Bind(Exclude = "Uid")] public class FormMetaData { [ScaffoldColumn(false)] public object Uid { get; set; } [ScaffoldColumn(false)] public object... 阅读全文
摘要:
C#中使用GDI+实现饼状图和柱状图跟数据库联接显示数据的方法.(其实也就是饼图的制作原理之一) using System; using System.IO;//用于文件存取 using System.Data;//用于数据访问 using System.Drawing;//提供画GDI+图形的基本功能 using System.Drawing.Text;//提供画GDI+图形的高级功能 usin... 阅读全文