資源簡介
c# GUI+ 適合電力,汽車,溫度等多種圖表應用,

代碼片段和文件信息
//?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?AGaugeApp
{
????[ToolboxBitmapAttribute(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_S
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????67492??2007-02-08?11:17??AGaugeApp\AGauge.cs
?????文件???????1053??2007-01-07?14:52??AGaugeApp\AGauge.Designer.cs
?????文件???????3628??2009-09-16?10:04??AGaugeApp\AGaugeApp.csproj
?????文件???????2560??2009-11-04?17:01??AGaugeApp\AGaugeApp.suo
?????文件??????60928??2009-09-16?10:04??AGaugeApp\bin\Debug\AGaugeApp.exe
?????文件??????91648??2009-09-16?10:04??AGaugeApp\bin\Debug\AGaugeApp.pdb
?????文件??????14328??2009-11-17?14:58??AGaugeApp\bin\Debug\AGaugeApp.vshost.exe
?????文件????????490??2007-07-21?01:33??AGaugeApp\bin\Debug\AGaugeApp.vshost.exe.manifest
?????文件???????3568??2007-02-04?00:26??AGaugeApp\Form1.cs
?????文件??????64920??2007-02-04?00:26??AGaugeApp\Form1.Designer.cs
?????文件???????6205??2007-02-04?00:26??AGaugeApp\Form1.resx
?????文件????????782??2009-11-17?14:58??AGaugeApp\obj\Debug\AGaugeApp.csproj.FileListAbsolute.txt
?????文件????????847??2009-09-16?10:04??AGaugeApp\obj\Debug\AGaugeApp.csproj.GenerateResource.Cache
?????文件??????60928??2009-09-16?10:04??AGaugeApp\obj\Debug\AGaugeApp.exe
?????文件????????180??2009-09-16?10:04??AGaugeApp\obj\Debug\AGaugeApp.Form1.resources
?????文件??????91648??2009-09-16?10:04??AGaugeApp\obj\Debug\AGaugeApp.pdb
?????文件????????180??2009-09-16?10:04??AGaugeApp\obj\Debug\AGaugeApp.Properties.Resources.resources
?????文件???????4608??2009-09-16?10:04??AGaugeApp\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
?????文件????????476??2007-01-07?14:52??AGaugeApp\Program.cs
?????文件???????1275??2007-02-08?11:21??AGaugeApp\Properties\AssemblyInfo.cs
?????文件???????2842??2009-09-16?10:04??AGaugeApp\Properties\Resources.Designer.cs
?????文件???????5612??2007-01-07?14:52??AGaugeApp\Properties\Resources.resx
?????文件???????1107??2009-09-16?10:04??AGaugeApp\Properties\Settings.Designer.cs
?????文件????????249??2007-01-07?14:52??AGaugeApp\Properties\Settings.settings
?????文件????1440054??2007-02-08?11:22??AGaugeApp\screenshot.bmp
?????目錄??????????0??2009-11-17?14:59??AGaugeApp\obj\Debug\TempPE
?????目錄??????????0??2009-11-17?14:59??AGaugeApp\bin\Debug
?????目錄??????????0??2009-11-17?14:59??AGaugeApp\obj\Debug
?????目錄??????????0??2009-11-17?14:59??AGaugeApp\bin
?????目錄??????????0??2009-11-17?14:59??AGaugeApp\obj
............此處省略5個文件信息
- 上一篇:WPF數學三角尺三角板
- 下一篇:C#委托和串行收發數據
評論
共有 條評論