资源简介
用于工业使用的自定义控件,包括图表,温度计,仪表盘等自定义控件。

代码片段和文件信息
// Copyright (C) 2007 A.J.Bauer
//
// This software is provided as-is without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
// Permission is granted to anyone to use this software for any purpose
// including commercial applications and to alter it and redistribute it
// freely subject to the following restrictions:
// 1. The origin of this software must not be misrepresented; you must not
// claim that you wrote the original software. if you use this software
// in a product an acknowledgment in the product documentation would be
// appreciated but is not required.
// 2. Altered source versions must be plainly marked as such and must not be
// misrepresented as being the original software.
// 3. This notice may not be removed or altered from any source distribution.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Drawing2D;
using System.Diagnostics;
namespace HMIControls
{
[ToolboxBitmap(typeof(AGauge) “AGauge.bmp“)
DefaultEvent(“ValueInRangeChanged“)
Description(“Displays a value on an analog gauge. Raises an event if the value enters one of the definable ranges.“)]
public partial class AGauge : Control
{
#region enum var delegate event
public enum NeedleColorEnum
{
Gray = 0
Red = 1
Green = 2
Blue = 3
Yellow = 4
Violet = 5
Magenta = 6
};
private const Byte ZERO = 0;
private const Byte NUMOFCAPS = 5;
private const Byte NUMOFRANGES = 5;
private Single fontBoundY1;
private Single fontBoundY2;
private Bitmap gaugeBitmap;
private Boolean drawGaugeBackground = true;
private Single m_value;
private Boolean[] m_valueIsInRange = { false false false false false };
private Byte m_CapIdx = 1;
private Color[] m_CapColor = { Color.Black Color.Black Color.Black Color.Black Color.Black };
private String[] m_CapText = { ““ ““ ““ ““ ““ };
private Point[] m_CapPosition = { new Point(10 10) new Point(10 10) new Point(10 10) new Point(10 10) new Point(10 10) };
private Point m_Center = new Point(100 100);
private Single m_MinValue = -100;
private Single m_MaxValue = 400;
private Color m_baseArcColor = Color.Gray;
private Int32 m_baseArcRadius = 80;
private Int32 m_baseArcStart = 135;
private Int32 m_baseArcSweep = 270;
private Int32 m_baseArcWidth = 2;
private Color m_ScaleLinesInterColor = Color.Black;
private Int32 m_ScaleLinesInterInnerRadius = 73;
private Int32 m_ScaleLin
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-10-21 13:38 IndustrialControl\
目录 0 2016-10-21 14:05 IndustrialControl\HMIControls\
文件 67485 2014-05-27 16:25 IndustrialControl\HMIControls\AGauge.cs
文件 1055 2014-05-27 16:25 IndustrialControl\HMIControls\AGauge.Designer.cs
文件 8042 2014-12-11 22:12 IndustrialControl\HMIControls\AirMachine.cs
文件 8437 2014-12-11 22:12 IndustrialControl\HMIControls\AirMachine.Designer.cs
文件 5817 2014-12-11 22:12 IndustrialControl\HMIControls\AirMachine.resx
文件 32642 2014-05-27 16:26 IndustrialControl\HMIControls\AquaGauge.cs
文件 1320 2014-05-27 16:25 IndustrialControl\HMIControls\AquaGauge.Designer.cs
目录 0 2014-05-27 16:23 IndustrialControl\HMIControls\bin\
目录 0 2016-10-21 14:06 IndustrialControl\HMIControls\bin\Debug\
文件 183296 2016-10-21 14:06 IndustrialControl\HMIControls\bin\Debug\HMIControls.dll
文件 185856 2016-10-21 14:06 IndustrialControl\HMIControls\bin\Debug\HMIControls.pdb
文件 303104 2007-06-02 00:02 IndustrialControl\HMIControls\bin\Debug\ZedGraph.dll
目录 0 2014-05-27 16:23 IndustrialControl\HMIControls\bin\Release\
目录 0 2014-05-22 15:37 IndustrialControl\HMIControls\dll\
文件 303104 2007-06-02 00:02 IndustrialControl\HMIControls\dll\ZedGraph.dll
文件 5014 2016-10-21 14:06 IndustrialControl\HMIControls\HMIControls.csproj
目录 0 2014-05-27 16:28 IndustrialControl\HMIControls\images\
文件 35634 2014-05-22 14:52 IndustrialControl\HMIControls\images\airmachine.jpg
文件 35151 2014-05-23 09:52 IndustrialControl\HMIControls\images\airmachine_1.jpg
文件 891 2014-05-26 10:22 IndustrialControl\HMIControls\images\arrow-down.png
文件 834 2014-05-26 10:23 IndustrialControl\HMIControls\images\arrow-left.png
文件 825 2014-05-23 09:58 IndustrialControl\HMIControls\images\arrow-right.png
文件 877 2014-05-26 10:23 IndustrialControl\HMIControls\images\arrow-up.png
文件 9814 2014-05-23 15:38 IndustrialControl\HMIControls\images\water-tank.jpg
文件 9567 2014-05-26 10:18 IndustrialControl\HMIControls\images\water-tank_1.jpg
目录 0 2014-05-27 16:19 IndustrialControl\HMIControls\obj\
目录 0 2016-10-21 14:06 IndustrialControl\HMIControls\obj\Debug\
文件 863 2016-10-21 14:06 IndustrialControl\HMIControls\obj\Debug\DesignTimeResolveAssemblyReferences.cache
文件 7289 2016-10-21 14:06 IndustrialControl\HMIControls\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
............此处省略135个文件信息
相关资源
- asp.net C#购物车源代码
- C#实时网络流量监听源码
- C#百度地图源码
- Visual C#.2010从入门到精通配套源程序
- C# 软件版本更新
- C#屏幕软键盘源码,可以自己定制界面
- 智慧城市 智能家居 C# 源代码
- c#获取mobile手机的IMEI和IMSI
- C#实现简单QQ聊天程序
- 操作系统 模拟的 欢迎下载 C#版
- C#写的计算机性能监控程序
- 用C#实现邮件发送,有点类似于outlo
- MVC model层代码生成器 C#
- c#小型图书销售系统
- C# Socket Server Client 通讯应用 完整的服
- c# winform 自动登录 百度账户 源代码
- C#编写的16进制计算器
- C#TCP通信协议
- C# 数据表(Dataset)操作 合并 查询一
- C#语音识别系统speechsdk51,SpeechSDK51L
- 数据库备份还原工具1.0 C# 源码
-
[免费]xm
lDocument 节点遍历C# - EQ2008LEDc#开发实例
- DirectX.Capturec# winform 操作摄像头录像附
- c# 实现的最大最小距离方法对鸢尾花
- C#版保龄球记分代码
- C#自定义控件
- 基于c#的实验室设备管理系统621530
- C# 使用ListView控件实现图片浏览器(源
- C#简单窗体聊天程序
评论
共有 条评论