資源簡介
功能:C#開發的上位機波形軟件,雙通道,串口數據上傳,10位AD采樣,分高八位,第八位。即,串口4字節發送數據。

代碼片段和文件信息
using?System;
using?System.IO;??
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Text;
using?System.Windows.Forms;
using?System.Text.Regularexpressions;
using?System.Drawing.Drawing2D;
using?NPOI.HSSF.UserModel;??
using?NPOI.HPSF;??
using?NPOI.POIFS.FileSystem;??
using?NPOI.HSSF.Util;??
using?NPOI.SS.UserModel;??
using?NPOI.HSSF.Record.CF;??
namespace?Test
{
????///?
????///?測試窗體
????///?
????public?partial?class?FormTest?:?Form
????{
????????public?FormTest()
????????{
????????????InitializeComponent();
????????????f_saveReadFirst(false);
????????????f_restyle();
????????????comboBoxSerPtLst.Items.AddRange(System.IO.Ports.SerialPort.GetPortNames());
????????}
????????private?Color[]?m_colors;
????????private?float?m_fstyle;
????????private?int[]?m_istyle;
????????///?
????????///?獲取初始的波形顯示控件的樣式或設置為初始樣式
????????///?
????????///?獲取ture?|?設置false
????????private?void?f_saveReadFirst(bool?isRead)
????????{
????????????if?(!isRead)
????????????{
????????????????m_colors?=?new?Color[18];
????????????????m_istyle?=?new?int[2];
????????????????m_istyle[0]?=?zGraphTest.m_titleSize;
????????????????m_fstyle?=?zGraphTest.m_titlePosition;
????????????????m_colors[0]?=?zGraphTest.m_titleColor;
????????????????m_colors[1]?=?zGraphTest.m_titleBorderColor;
????????????????m_colors[2]?=?zGraphTest.m_backColorL;
????????????????m_colors[3]?=?zGraphTest.m_backColorH;
????????????????m_colors[4]?=?zGraphTest.m_coordinateLineColor;
????????????????m_colors[5]?=?zGraphTest.m_coordinateStringColor;
????????????????m_colors[6]?=?zGraphTest.m_coordinateStringtitleColor;
????????????????m_istyle[1]?=?zGraphTest.m_iLineShowColorAlpha;
????????????????m_colors[7]?=?zGraphTest.m_iLineShowColor;
????????????????m_colors[8]?=?zGraphTest.m_GraphBackColor;
????????????????m_colors[9]?=?zGraphTest.m_ControlItemBackColor;
????????????????m_colors[10]?=?zGraphTest.m_ControlButtonBackColor;
????????????????m_colors[11]?=?zGraphTest.m_ControlButtonForeColorL;
????????????????m_colors[12]?=?zGraphTest.m_ControlButtonForeColorH;
????????????????m_colors[13]?=?zGraphTest.m_DirectionBackColor;
????????????????m_colors[14]?=?zGraphTest.m_DirectionForeColor;
????????????????m_colors[15]?=?zGraphTest.m_BigXYBackColor;
????????????????m_colors[16]?=?zGraphTest.m_BigXYButtonBackColor;
????????????????m_colors[17]?=?zGraphTest.m_BigXYButtonForeColor;??????
????????????}
????????????else
????????????{
????????????????//樣式
????????????????textBox標題字體大小.Text?=?m_istyle[0].ToString();
????????????????zGraphTest.m_titleSize?=?m_istyle[0];
????????????????textBox標題位置.Text?=?m_fstyle.ToString();
????????????????zGraphTest.m_titlePosition?=?m_fstyle;
????????????????zGraphTest.m_titleColor=button標題顏色.BackColor?=?m_colors[0];
????????????????zGraphTest.m_titleBorderColor=button標題描邊顏色.BackCo
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2013-12-16?15:30??Csharp_DrawCurveFromSerial\
?????文件??????????77??2013-06-15?01:14??Csharp_DrawCurveFromSerial\app.config
?????目錄???????????0??2013-12-16?15:30??Csharp_DrawCurveFromSerial\Backup\
?????文件???????37825??2009-12-24?13:17??Csharp_DrawCurveFromSerial\Backup\FormTest.cs
?????文件???????79196??2009-12-19?18:46??Csharp_DrawCurveFromSerial\Backup\FormTest.Designer.cs
?????文件????????6211??2009-12-23?21:41??Csharp_DrawCurveFromSerial\Backup\FormTest.resx
?????文件?????????466??2009-12-17?23:08??Csharp_DrawCurveFromSerial\Backup\Program.cs
?????目錄???????????0??2013-12-16?15:30??Csharp_DrawCurveFromSerial\Backup\Properties\
?????文件????????1156??2009-12-17?23:08??Csharp_DrawCurveFromSerial\Backup\Properties\AssemblyInfo.cs
?????文件????????2864??2009-12-17?23:08??Csharp_DrawCurveFromSerial\Backup\Properties\Resources.Designer.cs
?????文件????????5612??2009-12-17?23:08??Csharp_DrawCurveFromSerial\Backup\Properties\Resources.resx
?????文件????????1089??2009-12-17?23:08??Csharp_DrawCurveFromSerial\Backup\Properties\Settings.Designer.cs
?????文件?????????249??2009-12-17?23:08??Csharp_DrawCurveFromSerial\Backup\Properties\Settings.settings
?????文件????????3440??2009-12-19?15:18??Csharp_DrawCurveFromSerial\Backup\Test.csproj
?????文件?????????896??2009-12-17?23:08??Csharp_DrawCurveFromSerial\Backup\Test.sln
?????目錄???????????0??2013-12-16?15:30??Csharp_DrawCurveFromSerial\bin\
?????目錄???????????0??2013-12-16?15:30??Csharp_DrawCurveFromSerial\bin\Debug\
?????文件???????90624??2013-11-09?10:39??Csharp_DrawCurveFromSerial\bin\Debug\2013119103949.xls
?????文件???????23552??2013-06-15?06:16??Csharp_DrawCurveFromSerial\bin\Debug\BookTemplate.xls
?????文件??????445440??2012-02-15?21:59??Csharp_DrawCurveFromSerial\bin\Debug\Ionic.Zip.dll
?????文件?????1454080??2012-05-04?19:57??Csharp_DrawCurveFromSerial\bin\Debug\NPOI.dll
?????文件?????2009506??2012-05-04?19:57??Csharp_DrawCurveFromSerial\bin\Debug\NPOI.xm
?????文件???????74240??2013-10-18?10:26??Csharp_DrawCurveFromSerial\bin\Debug\Test.exe
?????文件??????????77??2013-06-15?01:14??Csharp_DrawCurveFromSerial\bin\Debug\Test.exe.config
?????文件???????75264??2013-10-18?10:26??Csharp_DrawCurveFromSerial\bin\Debug\Test.pdb
?????文件???????11608??2013-12-16?15:32??Csharp_DrawCurveFromSerial\bin\Debug\Test.vshost.exe
?????文件??????????77??2013-06-15?01:14??Csharp_DrawCurveFromSerial\bin\Debug\Test.vshost.exe.config
?????文件?????????490??2010-03-17?22:39??Csharp_DrawCurveFromSerial\bin\Debug\Test.vshost.exe.manifest
?????文件???????53248??2010-05-11?14:04??Csharp_DrawCurveFromSerial\bin\Debug\ZGraph.dll
?????文件???????15882??2010-05-11?14:04??Csharp_DrawCurveFromSerial\bin\Debug\ZGraph.xm
?????目錄???????????0??2013-12-12?13:42??Csharp_DrawCurveFromSerial\bin\Release\
............此處省略46個文件信息
- 上一篇:C#+SQL+三層架構酒店管理系統
- 下一篇:C# quartz 定時使用教程
評論
共有 條評論