文件名称:Battery
- 所属分类:
- Windows编程
- 资源属性:
- [Windows] [Visual.Net] [Basic/ASP] [源码]
- 上传时间:
- 2013-10-17
- 文件大小:
- 2kb
- 下载次数:
- 0次
- 提 供 者:
- 覃*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
在WinCE操作系统中,用于读取电池的状态。
调用方法:
//主窗口电池
Battery battery = new Battery()
Battery.State SLast = Battery.State.Normal
//主界面时钟,用户查看电池状态
private void timer2_Tick(object sender, EventArgs e)
{
((Timer)sender).Enabled = false
Battery.SystemIdleTimerReset()
SLast = battery.Status
Rectangle Rect = battery.BatteryState
if (battery.Status != SLast)
{
Invalidate()
}
((Timer)sender).Enabled = true
}
//主窗口画画图事件
private void FrmMain_Paint(object sender, PaintEventArgs e)
{
//画出电池形状-在WinCE操作系统中,用于读取电池的状态。
调用方法:
//主窗口电池
Battery battery = new Battery()
Battery.State SLast = Battery.State.Normal
//主界面时钟,用户查看电池状态
private void timer2_Tick(object sender, EventArgs e)
{
((Timer)sender).Enabled = false
Battery.SystemIdleTimerReset()
SLast = battery.Status
Rectangle Rect = battery.BatteryState
if (battery.Status != SLast)
{
Invalidate()
}
((Timer)sender).Enabled = true
}
//主窗口画画图事件
private void FrmMain_Paint(object sender, PaintEventArgs e)
{
//画出电池形状
调用方法:
//主窗口电池
Battery battery = new Battery()
Battery.State SLast = Battery.State.Normal
//主界面时钟,用户查看电池状态
private void timer2_Tick(object sender, EventArgs e)
{
((Timer)sender).Enabled = false
Battery.SystemIdleTimerReset()
SLast = battery.Status
Rectangle Rect = battery.BatteryState
if (battery.Status != SLast)
{
Invalidate()
}
((Timer)sender).Enabled = true
}
//主窗口画画图事件
private void FrmMain_Paint(object sender, PaintEventArgs e)
{
//画出电池形状-在WinCE操作系统中,用于读取电池的状态。
调用方法:
//主窗口电池
Battery battery = new Battery()
Battery.State SLast = Battery.State.Normal
//主界面时钟,用户查看电池状态
private void timer2_Tick(object sender, EventArgs e)
{
((Timer)sender).Enabled = false
Battery.SystemIdleTimerReset()
SLast = battery.Status
Rectangle Rect = battery.BatteryState
if (battery.Status != SLast)
{
Invalidate()
}
((Timer)sender).Enabled = true
}
//主窗口画画图事件
private void FrmMain_Paint(object sender, PaintEventArgs e)
{
//画出电池形状
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Battery.cs