资源简介
用c# 开发的 显示下位机无线传送来的温度湿度 ,和统计温度湿度历史数据的 程序
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Imaging;
using System.Drawing.Drawing2D;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Runtime.InteropServices;
namespace EnviromentMonitor
{
public partial class child : Form
{
public bool dataPrepare=false;
public Point mousePoint;
public string readString;
public string zeroTime;
public Int32 filePosition;
public class Pic
{
public Point[] pointTemp=new Point[5000];
public Point[] pointHumid = new Point[5000];
private Int32 pointNum;
public Int16 count = 0;
public Int32 Height;
public Int32 Humidity;
public Int32 Temperature;
public string HumidityString;
public string TemperatureString;
public string DisplayString;
public bool newPicture = false;
public Color backColor;
public Pen humidPen;
public Pen tempPen;
public Font wordFont;
public Int32 d_value;
public void init(PictureBox picbox Pen hpen Pen tPen Font wFont Int32 dv)
{
Height = picbox.Height;
d_value = dv;
humidPen = hpen;
tempPen = tPen;
wordFont = wFont;
backColor = picbox.BackColor;
pointNum = 0;
}
public Point movePoint(Point p Int32 x Int32 y)
{
return (new Point(p.X +x p.Y + y));
}
public void updataData(Point h Point tTextBox tb)
{
pointTemp[pointNum] = movePoint(t d_value0);
pointHumid[pointNum] = movePoint(h d_value0);
pointTemp[pointNum].Y = Height - pointTemp[pointNum].Y*5-d_value;
pointHumid[pointNum].Y = Height - pointHumid[pointNum].Y*5-d_value;
pointNum++;
}
public void draw_line(Int32 startXInt32 endXGraphics g)
{
Int32 i = 0;
for (i = 0; i < pointNum-1; i++)
{
if (pointHumid[i].X >= startX + d_value && pointHumid[i].X <= endX + d_value)
{
g.DrawLine(humidPen movePoint(pointHumid[i] -startX 0) movePoint(pointHumid[i+1] -startX 0));
}
if (pointTemp[i].X >= startX + d_value && pointTemp[i].X <= endX + d_value)
{
g.DrawLine(tempPen movePoint(pointTemp[i] -startX 0) movePoint(pointTemp[i+1] -startX 0));
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-04-22 19:54 port asistance422\
文件 914 2014-03-25 15:37 port asistance422\port asistance.sln
文件 34816 2014-04-22 22:50 port asistance422\port asistance.suo
目录 0 2014-04-22 20:44 port asistance422\WindowsFormsApplication1\
目录 0 2014-04-22 19:54 port asistance422\WindowsFormsApplication1\bin\
目录 0 2014-04-22 21:46 port asistance422\WindowsFormsApplication1\bin\Debug\
文件 28160 2014-04-22 22:48 port asistance422\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe
文件 58880 2014-04-22 22:48 port asistance422\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.pdb
文件 11600 2014-04-22 22:50 port asistance422\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe
文件 490 2009-08-31 00:40 port asistance422\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe.manifest
目录 0 2014-04-19 20:57 port asistance422\WindowsFormsApplication1\bin\Release\
文件 17002 2014-04-22 21:50 port asistance422\WindowsFormsApplication1\child_data.cs
文件 5688 2014-04-22 21:13 port asistance422\WindowsFormsApplication1\child_data.designer.cs
文件 6388 2014-04-22 20:30 port asistance422\WindowsFormsApplication1\child_data.resx
文件 3 2014-04-19 20:58 port asistance422\WindowsFormsApplication1\DataClasses1.dbml
文件 3 2014-04-19 20:58 port asistance422\WindowsFormsApplication1\DataClasses1.dbml.layout
文件 1703 2014-04-19 20:58 port asistance422\WindowsFormsApplication1\DataClasses1.designer.cs
文件 3 2014-04-19 20:59 port asistance422\WindowsFormsApplication1\DataClasses2.dbml
文件 3 2014-04-19 20:59 port asistance422\WindowsFormsApplication1\DataClasses2.dbml.layout
文件 1703 2014-04-19 20:59 port asistance422\WindowsFormsApplication1\DataClasses2.designer.cs
文件 15988 2014-04-22 19:53 port asistance422\WindowsFormsApplication1\Deal_data.cs
文件 21168 2014-04-22 22:48 port asistance422\WindowsFormsApplication1\main_port.cs
文件 6970 2014-04-22 22:48 port asistance422\WindowsFormsApplication1\main_port.Designer.cs
文件 6550 2014-04-22 22:48 port asistance422\WindowsFormsApplication1\main_port.resx
目录 0 2014-04-22 19:54 port asistance422\WindowsFormsApplication1\obj\
目录 0 2014-04-22 19:54 port asistance422\WindowsFormsApplication1\obj\x86\
目录 0 2014-04-22 22:48 port asistance422\WindowsFormsApplication1\obj\x86\Debug\
文件 180 2014-04-22 19:46 port asistance422\WindowsFormsApplication1\obj\x86\Debug\Deal_data.Form1.resources
文件 4440 2014-03-25 20:30 port asistance422\WindowsFormsApplication1\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
文件 6350 2014-04-22 22:48 port asistance422\WindowsFormsApplication1\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
文件 180 2014-04-22 21:50 port asistance422\WindowsFormsApplication1\obj\x86\Debug\EnviromentMonitor.child.resources
............此处省略20个文件信息
相关资源
- C# 调用win32 api函数-user32.dll详细说明
- C# 调用BarTender打印条码DEMO
- 大型比赛竞赛抽签系统 可打印 c# vs
- C#编写的Gerber查看器
- lua C# .Net4.0 vs2010 LuaInterface
- C#十六进制编辑器
- 明华URF-35H读卡器 C#读写源码 为大家
- C#文件流读取CSV文件
- c#读写PDF文件sql
- C# winform Socket大文件传输
- c#车牌识别系统附30张测试图片
- 《C#面向对象程序设计》源代码(CS)
- 金旭亮《C#面向对象程序设计》教案
- 试题库管理系统毕业论文(C#)源程序
- 学校网站原代码(C#.NET)
- C#-数据库操作技术-员工管理系统
- c#web开发入门经典
- C#与Matlab混合编程的几种方式
- c# 开发与 mysql数据库实现的增删改查
- C#异步操作 异步查询数据库 异步处理
- Basler相机通过IO触发源码
- [源代码] 《领域驱动设计 (C# 2008 实
- 松下PLC与C#通讯串口调试入门教程.z
- USB 继电器控制器 LCUS-1 保证能用 c#
- C# AES加密解密小工具
- C#圆形按钮,非常漂亮动态~~
- [精]C#仿QQ右下角弹出提示框()
- C#进程间通信-共享内存代码
- 有史以来最简单的三层(C#)
- vb调用c#编写的串口DLL文件(vb源码
评论
共有 条评论