This commit is contained in:
wxt
2026-01-05 13:31:34 +08:00
parent 6988e53a61
commit a7e821cea0
8 changed files with 976 additions and 653 deletions

BIN
.vs/slnx.sqlite Normal file

Binary file not shown.

View File

@@ -1,6 +1,7 @@
using Sunny.UI;
using System.Diagnostics;
using System.Timers;
using .Data;
namespace
{
@@ -73,7 +74,11 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
_datetimeTimer.Dispose();
}
// 退出应用程序
Application.Exit();
if (e.CloseReason == CloseReason.UserClosing)
{
ModbusResourceManager.Instance?.Dispose();
Application.Exit();
}
}
private void uiButton1_Click(object sender, EventArgs e)

View File

@@ -10,7 +10,7 @@ namespace 外科辅料和患者防护罩激光抗性测试仪.Model
{
public int sampleType { get; set; }
public string result { get; set; }
public double O2 { get; set; }
public string O2 { get; set; }
public DateTime? FireDate { get; set; }
public double? yuhui { get; set; }
public double? yuyan { get; set; }

View File

@@ -28,11 +28,6 @@
/// </summary>
private void InitializeComponent()
{
DataGridViewCellStyle dataGridViewCellStyle11 = new DataGridViewCellStyle();
DataGridViewCellStyle dataGridViewCellStyle12 = new DataGridViewCellStyle();
DataGridViewCellStyle dataGridViewCellStyle13 = new DataGridViewCellStyle();
DataGridViewCellStyle dataGridViewCellStyle14 = new DataGridViewCellStyle();
DataGridViewCellStyle dataGridViewCellStyle15 = new DataGridViewCellStyle();
uiTableLayoutPanel1 = new Sunny.UI.UITableLayoutPanel();
uiTableLayoutPanel2 = new Sunny.UI.UITableLayoutPanel();
uiPanel3 = new Sunny.UI.UIPanel();
@@ -58,6 +53,8 @@
uiGroupBox3 = new Sunny.UI.UIGroupBox();
uiTableLayoutPanel3 = new Sunny.UI.UITableLayoutPanel();
uiPanel6 = new Sunny.UI.UIPanel();
uiLabel33 = new Sunny.UI.UILabel();
uiLabel34 = new Sunny.UI.UILabel();
uiLabel27 = new Sunny.UI.UILabel();
comkou = new Sunny.UI.UIComboBox();
connect = new Sunny.UI.UIButton();
@@ -90,25 +87,23 @@
uiLabel16 = new Sunny.UI.UILabel();
uiGroupBox4 = new Sunny.UI.UIGroupBox();
uiLabel21 = new Sunny.UI.UILabel();
uiLabel22 = new Sunny.UI.UILabel();
uiLabel19 = new Sunny.UI.UILabel();
uiLabel20 = new Sunny.UI.UILabel();
uiLabel18 = new Sunny.UI.UILabel();
uiLabel17 = new Sunny.UI.UILabel();
uiTableLayoutPanel6 = new Sunny.UI.UITableLayoutPanel();
uiPanel5 = new Sunny.UI.UIPanel();
uiButton10 = new Sunny.UI.UIButton();
uiButton9 = new Sunny.UI.UIButton();
uiButton8 = new Sunny.UI.UIButton();
uiPanel4 = new Sunny.UI.UIPanel();
uiDataGridView1 = new Sunny.UI.UIDataGridView();
Column1 = new DataGridViewTextBoxColumn();
Column7 = new DataGridViewTextBoxColumn();
Column2 = new DataGridViewTextBoxColumn();
Column3 = new DataGridViewTextBoxColumn();
Column4 = new DataGridViewTextBoxColumn();
Column5 = new DataGridViewTextBoxColumn();
Column6 = new DataGridViewTextBoxColumn();
uiLabel18 = new Sunny.UI.UILabel();
uiLabel19 = new Sunny.UI.UILabel();
uiLabel35 = new Sunny.UI.UILabel();
uiLabel20 = new Sunny.UI.UILabel();
uiComboBox2 = new Sunny.UI.UIComboBox();
uiLabel22 = new Sunny.UI.UILabel();
uiLabel36 = new Sunny.UI.UILabel();
uiLabel37 = new Sunny.UI.UILabel();
uiLabel38 = new Sunny.UI.UILabel();
uiLabel39 = new Sunny.UI.UILabel();
uiLabel40 = new Sunny.UI.UILabel();
uiLabel41 = new Sunny.UI.UILabel();
uiLabel42 = new Sunny.UI.UILabel();
uiLabel43 = new Sunny.UI.UILabel();
uiLabel44 = new Sunny.UI.UILabel();
uiLabel45 = new Sunny.UI.UILabel();
uiTableLayoutPanel1.SuspendLayout();
uiTableLayoutPanel2.SuspendLayout();
uiPanel3.SuspendLayout();
@@ -124,10 +119,6 @@
uiTableLayoutPanel5.SuspendLayout();
uiGroupBox5.SuspendLayout();
uiGroupBox4.SuspendLayout();
uiTableLayoutPanel6.SuspendLayout();
uiPanel5.SuspendLayout();
uiPanel4.SuspendLayout();
((System.ComponentModel.ISupportInitialize)uiDataGridView1).BeginInit();
SuspendLayout();
//
// uiTableLayoutPanel1
@@ -395,7 +386,7 @@
//
uiLabel28.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel28.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel28.Location = new Point(580, 44);
uiLabel28.Location = new Point(709, 44);
uiLabel28.Name = "uiLabel28";
uiLabel28.Size = new Size(147, 34);
uiLabel28.Style = Sunny.UI.UIStyle.Custom;
@@ -407,7 +398,7 @@
// uiLight3
//
uiLight3.Font = new Font("微软雅黑", 9F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLight3.Location = new Point(530, 40);
uiLight3.Location = new Point(659, 40);
uiLight3.MinimumSize = new Size(1, 1);
uiLight3.Name = "uiLight3";
uiLight3.Radius = 42;
@@ -580,6 +571,8 @@
// uiPanel6
//
uiPanel6.BackColor = Color.White;
uiPanel6.Controls.Add(uiLabel33);
uiPanel6.Controls.Add(uiLabel34);
uiPanel6.Controls.Add(uiLabel27);
uiPanel6.Controls.Add(comkou);
uiPanel6.Controls.Add(connect);
@@ -622,6 +615,32 @@
uiPanel6.Text = null;
uiPanel6.TextAlignment = ContentAlignment.MiddleCenter;
//
// uiLabel33
//
uiLabel33.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel33.ForeColor = Color.FromArgb(64, 158, 255);
uiLabel33.Location = new Point(513, 19);
uiLabel33.Name = "uiLabel33";
uiLabel33.Size = new Size(100, 34);
uiLabel33.Style = Sunny.UI.UIStyle.Custom;
uiLabel33.StyleCustomMode = true;
uiLabel33.TabIndex = 27;
uiLabel33.Text = "0.0";
uiLabel33.TextAlign = ContentAlignment.MiddleLeft;
//
// uiLabel34
//
uiLabel34.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel34.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel34.Location = new Point(328, 19);
uiLabel34.Name = "uiLabel34";
uiLabel34.Size = new Size(159, 34);
uiLabel34.Style = Sunny.UI.UIStyle.Custom;
uiLabel34.StyleCustomMode = true;
uiLabel34.TabIndex = 26;
uiLabel34.Text = "总测试时长(s):";
uiLabel34.TextAlign = ContentAlignment.MiddleLeft;
//
// uiLabel27
//
uiLabel27.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
@@ -775,7 +794,7 @@
//
uiLabel14.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel14.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel14.Location = new Point(580, 15);
uiLabel14.Location = new Point(709, 15);
uiLabel14.Name = "uiLabel14";
uiLabel14.Size = new Size(147, 34);
uiLabel14.Style = Sunny.UI.UIStyle.Custom;
@@ -787,7 +806,7 @@
// uiLight1
//
uiLight1.Font = new Font("微软雅黑", 9F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLight1.Location = new Point(530, 11);
uiLight1.Location = new Point(659, 11);
uiLight1.MinimumSize = new Size(1, 1);
uiLight1.Name = "uiLight1";
uiLight1.Radius = 42;
@@ -943,11 +962,11 @@
uiLabel10.ForeColor = Color.FromArgb(64, 158, 255);
uiLabel10.Location = new Point(185, 18);
uiLabel10.Name = "uiLabel10";
uiLabel10.Size = new Size(240, 34);
uiLabel10.Size = new Size(120, 34);
uiLabel10.Style = Sunny.UI.UIStyle.Custom;
uiLabel10.StyleCustomMode = true;
uiLabel10.TabIndex = 5;
uiLabel10.Text = "初次点火测试";
uiLabel10.Text = "1";
uiLabel10.TextAlign = ContentAlignment.MiddleLeft;
//
// uiLabel11
@@ -1020,13 +1039,12 @@
uiTableLayoutPanel4.ColumnCount = 1;
uiTableLayoutPanel4.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F));
uiTableLayoutPanel4.Controls.Add(uiTableLayoutPanel5, 0, 0);
uiTableLayoutPanel4.Controls.Add(uiTableLayoutPanel6, 0, 1);
uiTableLayoutPanel4.Dock = DockStyle.Fill;
uiTableLayoutPanel4.Location = new Point(953, 3);
uiTableLayoutPanel4.Name = "uiTableLayoutPanel4";
uiTableLayoutPanel4.RowCount = 2;
uiTableLayoutPanel4.RowStyles.Add(new RowStyle(SizeType.Percent, 30F));
uiTableLayoutPanel4.RowStyles.Add(new RowStyle(SizeType.Percent, 70F));
uiTableLayoutPanel4.RowCount = 1;
uiTableLayoutPanel4.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
uiTableLayoutPanel4.RowStyles.Add(new RowStyle(SizeType.Absolute, 20F));
uiTableLayoutPanel4.Size = new Size(944, 934);
uiTableLayoutPanel4.TabIndex = 1;
uiTableLayoutPanel4.TagString = null;
@@ -1034,16 +1052,16 @@
// uiTableLayoutPanel5
//
uiTableLayoutPanel5.ColumnCount = 2;
uiTableLayoutPanel5.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F));
uiTableLayoutPanel5.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F));
uiTableLayoutPanel5.Controls.Add(uiGroupBox5, 1, 0);
uiTableLayoutPanel5.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 60F));
uiTableLayoutPanel5.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 40F));
uiTableLayoutPanel5.Controls.Add(uiGroupBox4, 0, 0);
uiTableLayoutPanel5.Controls.Add(uiGroupBox5, 1, 0);
uiTableLayoutPanel5.Dock = DockStyle.Fill;
uiTableLayoutPanel5.Location = new Point(3, 3);
uiTableLayoutPanel5.Name = "uiTableLayoutPanel5";
uiTableLayoutPanel5.RowCount = 1;
uiTableLayoutPanel5.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
uiTableLayoutPanel5.Size = new Size(938, 274);
uiTableLayoutPanel5.Size = new Size(938, 928);
uiTableLayoutPanel5.TabIndex = 2;
uiTableLayoutPanel5.TagString = null;
//
@@ -1055,14 +1073,14 @@
uiGroupBox5.FillColor = Color.White;
uiGroupBox5.Font = new Font("微软雅黑", 11F, FontStyle.Bold, GraphicsUnit.Point, 134);
uiGroupBox5.ForeColor = Color.FromArgb(48, 49, 51);
uiGroupBox5.Location = new Point(473, 5);
uiGroupBox5.Location = new Point(566, 5);
uiGroupBox5.Margin = new Padding(4, 5, 4, 5);
uiGroupBox5.MinimumSize = new Size(1, 1);
uiGroupBox5.Name = "uiGroupBox5";
uiGroupBox5.Padding = new Padding(0, 32, 0, 0);
uiGroupBox5.Radius = 6;
uiGroupBox5.RectColor = Color.FromArgb(220, 223, 230);
uiGroupBox5.Size = new Size(461, 264);
uiGroupBox5.Size = new Size(368, 918);
uiGroupBox5.Style = Sunny.UI.UIStyle.Custom;
uiGroupBox5.StyleCustomMode = true;
uiGroupBox5.TabIndex = 1;
@@ -1084,12 +1102,24 @@
// uiGroupBox4
//
uiGroupBox4.BackColor = Color.White;
uiGroupBox4.Controls.Add(uiLabel44);
uiGroupBox4.Controls.Add(uiLabel45);
uiGroupBox4.Controls.Add(uiLabel21);
uiGroupBox4.Controls.Add(uiLabel22);
uiGroupBox4.Controls.Add(uiLabel19);
uiGroupBox4.Controls.Add(uiLabel20);
uiGroupBox4.Controls.Add(uiLabel18);
uiGroupBox4.Controls.Add(uiLabel17);
uiGroupBox4.Controls.Add(uiLabel18);
uiGroupBox4.Controls.Add(uiLabel19);
uiGroupBox4.Controls.Add(uiLabel35);
uiGroupBox4.Controls.Add(uiLabel20);
uiGroupBox4.Controls.Add(uiComboBox2);
uiGroupBox4.Controls.Add(uiLabel22);
uiGroupBox4.Controls.Add(uiLabel36);
uiGroupBox4.Controls.Add(uiLabel37);
uiGroupBox4.Controls.Add(uiLabel38);
uiGroupBox4.Controls.Add(uiLabel39);
uiGroupBox4.Controls.Add(uiLabel40);
uiGroupBox4.Controls.Add(uiLabel41);
uiGroupBox4.Controls.Add(uiLabel42);
uiGroupBox4.Controls.Add(uiLabel43);
uiGroupBox4.Dock = DockStyle.Fill;
uiGroupBox4.FillColor = Color.White;
uiGroupBox4.Font = new Font("微软雅黑", 11F, FontStyle.Bold, GraphicsUnit.Point, 134);
@@ -1101,327 +1131,244 @@
uiGroupBox4.Padding = new Padding(0, 32, 0, 0);
uiGroupBox4.Radius = 6;
uiGroupBox4.RectColor = Color.FromArgb(220, 223, 230);
uiGroupBox4.Size = new Size(461, 264);
uiGroupBox4.Size = new Size(554, 918);
uiGroupBox4.Style = Sunny.UI.UIStyle.Custom;
uiGroupBox4.StyleCustomMode = true;
uiGroupBox4.TabIndex = 0;
uiGroupBox4.TabIndex = 2;
uiGroupBox4.Text = "测试结果";
uiGroupBox4.TextAlignment = ContentAlignment.MiddleLeft;
uiGroupBox4.Click += uiGroupBox4_Click;
//
// uiLabel21
//
uiLabel21.Font = new Font("微软雅黑", 12F, FontStyle.Bold, GraphicsUnit.Point, 134);
uiLabel21.ForeColor = Color.FromArgb(103, 194, 58);
uiLabel21.Location = new Point(200, 117);
uiLabel21.ForeColor = Color.FromArgb(64, 158, 255);
uiLabel21.Location = new Point(213, 135);
uiLabel21.Name = "uiLabel21";
uiLabel21.Size = new Size(169, 31);
uiLabel21.Size = new Size(265, 31);
uiLabel21.Style = Sunny.UI.UIStyle.Custom;
uiLabel21.StyleCustomMode = true;
uiLabel21.TabIndex = 5;
uiLabel21.Text = "是";
uiLabel21.TabIndex = 19;
uiLabel21.TextAlign = ContentAlignment.MiddleCenter;
//
// uiLabel22
// uiLabel17
//
uiLabel22.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel22.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel22.Location = new Point(70, 117);
uiLabel22.Name = "uiLabel22";
uiLabel22.Size = new Size(132, 31);
uiLabel22.Style = Sunny.UI.UIStyle.Custom;
uiLabel22.StyleCustomMode = true;
uiLabel22.TabIndex = 4;
uiLabel22.Text = "是否自熄:";
uiLabel22.TextAlign = ContentAlignment.MiddleLeft;
uiLabel17.Font = new Font("微软雅黑", 12F, FontStyle.Bold, GraphicsUnit.Point, 134);
uiLabel17.ForeColor = Color.FromArgb(64, 158, 255);
uiLabel17.Location = new Point(260, 347);
uiLabel17.Name = "uiLabel17";
uiLabel17.Size = new Size(169, 31);
uiLabel17.Style = Sunny.UI.UIStyle.Custom;
uiLabel17.StyleCustomMode = true;
uiLabel17.TabIndex = 18;
uiLabel17.TextAlign = ContentAlignment.MiddleCenter;
//
// uiLabel18
//
uiLabel18.Font = new Font("微软雅黑", 12F, FontStyle.Bold, GraphicsUnit.Point, 134);
uiLabel18.ForeColor = Color.FromArgb(103, 194, 58);
uiLabel18.Location = new Point(260, 449);
uiLabel18.Name = "uiLabel18";
uiLabel18.Size = new Size(169, 31);
uiLabel18.Style = Sunny.UI.UIStyle.Custom;
uiLabel18.StyleCustomMode = true;
uiLabel18.TabIndex = 17;
uiLabel18.TextAlign = ContentAlignment.MiddleCenter;
//
// uiLabel19
//
uiLabel19.Font = new Font("微软雅黑", 12F, FontStyle.Bold, GraphicsUnit.Point, 134);
uiLabel19.ForeColor = Color.FromArgb(64, 158, 255);
uiLabel19.Location = new Point(200, 179);
uiLabel19.Location = new Point(260, 506);
uiLabel19.Name = "uiLabel19";
uiLabel19.Size = new Size(169, 31);
uiLabel19.Style = Sunny.UI.UIStyle.Custom;
uiLabel19.StyleCustomMode = true;
uiLabel19.TabIndex = 3;
uiLabel19.Text = "I1";
uiLabel19.TabIndex = 16;
uiLabel19.TextAlign = ContentAlignment.MiddleCenter;
//
// uiLabel35
//
uiLabel35.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel35.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel35.Location = new Point(90, 506);
uiLabel35.Name = "uiLabel35";
uiLabel35.Size = new Size(169, 31);
uiLabel35.Style = Sunny.UI.UIStyle.Custom;
uiLabel35.StyleCustomMode = true;
uiLabel35.TabIndex = 15;
uiLabel35.Text = "总测试时长(s):";
uiLabel35.TextAlign = ContentAlignment.MiddleLeft;
//
// uiLabel20
//
uiLabel20.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel20.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel20.Location = new Point(70, 179);
uiLabel20.Location = new Point(90, 453);
uiLabel20.Name = "uiLabel20";
uiLabel20.Size = new Size(132, 31);
uiLabel20.Size = new Size(136, 31);
uiLabel20.Style = Sunny.UI.UIStyle.Custom;
uiLabel20.StyleCustomMode = true;
uiLabel20.TabIndex = 2;
uiLabel20.Text = "分类结果:";
uiLabel20.TabIndex = 13;
uiLabel20.Text = "是否自熄:";
uiLabel20.TextAlign = ContentAlignment.MiddleLeft;
//
// uiLabel18
// uiComboBox2
//
uiLabel18.Font = new Font("微软雅黑", 12F, FontStyle.Bold, GraphicsUnit.Point, 134);
uiLabel18.ForeColor = Color.FromArgb(64, 158, 255);
uiLabel18.Location = new Point(200, 60);
uiLabel18.Name = "uiLabel18";
uiLabel18.Size = new Size(169, 31);
uiLabel18.Style = Sunny.UI.UIStyle.Custom;
uiLabel18.StyleCustomMode = true;
uiLabel18.TabIndex = 1;
uiLabel18.Text = "1";
uiLabel18.TextAlign = ContentAlignment.MiddleCenter;
uiComboBox2.DataSource = null;
uiComboBox2.FillColor = Color.White;
uiComboBox2.Font = new Font("宋体", 12F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiComboBox2.ItemHoverColor = Color.FromArgb(155, 200, 255);
uiComboBox2.ItemSelectForeColor = Color.FromArgb(235, 243, 255);
uiComboBox2.Location = new Point(260, 74);
uiComboBox2.Margin = new Padding(4, 5, 4, 5);
uiComboBox2.MinimumSize = new Size(63, 0);
uiComboBox2.Name = "uiComboBox2";
uiComboBox2.Padding = new Padding(0, 0, 30, 2);
uiComboBox2.Size = new Size(188, 36);
uiComboBox2.SymbolSize = 24;
uiComboBox2.TabIndex = 12;
uiComboBox2.TextAlignment = ContentAlignment.MiddleLeft;
uiComboBox2.Watermark = "";
//
// uiLabel17
// uiLabel22
//
uiLabel17.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel17.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel17.Location = new Point(70, 60);
uiLabel17.Name = "uiLabel17";
uiLabel17.Size = new Size(124, 31);
uiLabel17.Style = Sunny.UI.UIStyle.Custom;
uiLabel17.StyleCustomMode = true;
uiLabel17.TabIndex = 0;
uiLabel17.Text = "测试样品项:";
uiLabel17.TextAlign = ContentAlignment.MiddleLeft;
uiLabel22.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel22.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel22.Location = new Point(90, 347);
uiLabel22.Name = "uiLabel22";
uiLabel22.Size = new Size(136, 31);
uiLabel22.Style = Sunny.UI.UIStyle.Custom;
uiLabel22.StyleCustomMode = true;
uiLabel22.TabIndex = 10;
uiLabel22.Text = "余焰时间(s):";
uiLabel22.TextAlign = ContentAlignment.MiddleLeft;
//
// uiTableLayoutPanel6
// uiLabel36
//
uiTableLayoutPanel6.ColumnCount = 1;
uiTableLayoutPanel6.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F));
uiTableLayoutPanel6.Controls.Add(uiPanel5, 0, 1);
uiTableLayoutPanel6.Controls.Add(uiPanel4, 0, 0);
uiTableLayoutPanel6.Dock = DockStyle.Fill;
uiTableLayoutPanel6.Location = new Point(3, 283);
uiTableLayoutPanel6.Name = "uiTableLayoutPanel6";
uiTableLayoutPanel6.RowCount = 2;
uiTableLayoutPanel6.RowStyles.Add(new RowStyle(SizeType.Percent, 88F));
uiTableLayoutPanel6.RowStyles.Add(new RowStyle(SizeType.Percent, 12F));
uiTableLayoutPanel6.Size = new Size(938, 648);
uiTableLayoutPanel6.TabIndex = 3;
uiTableLayoutPanel6.TagString = null;
uiLabel36.Font = new Font("微软雅黑", 12F, FontStyle.Bold, GraphicsUnit.Point, 134);
uiLabel36.ForeColor = Color.FromArgb(64, 158, 255);
uiLabel36.Location = new Point(260, 400);
uiLabel36.Name = "uiLabel36";
uiLabel36.Size = new Size(169, 31);
uiLabel36.Style = Sunny.UI.UIStyle.Custom;
uiLabel36.StyleCustomMode = true;
uiLabel36.TabIndex = 9;
uiLabel36.TextAlign = ContentAlignment.MiddleCenter;
//
// uiPanel5
// uiLabel37
//
uiPanel5.BackColor = Color.White;
uiPanel5.Controls.Add(uiButton10);
uiPanel5.Controls.Add(uiButton9);
uiPanel5.Controls.Add(uiButton8);
uiPanel5.Dock = DockStyle.Fill;
uiPanel5.FillColor = Color.White;
uiPanel5.Font = new Font("微软雅黑", 9F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiPanel5.Location = new Point(4, 575);
uiPanel5.Margin = new Padding(4, 5, 4, 5);
uiPanel5.MinimumSize = new Size(1, 1);
uiPanel5.Name = "uiPanel5";
uiPanel5.Radius = 0;
uiPanel5.RectColor = Color.FromArgb(220, 223, 230);
uiPanel5.Size = new Size(930, 68);
uiPanel5.Style = Sunny.UI.UIStyle.Custom;
uiPanel5.StyleCustomMode = true;
uiPanel5.TabIndex = 2;
uiPanel5.Text = null;
uiPanel5.TextAlignment = ContentAlignment.MiddleCenter;
uiLabel37.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel37.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel37.Location = new Point(90, 400);
uiLabel37.Name = "uiLabel37";
uiLabel37.Size = new Size(136, 31);
uiLabel37.Style = Sunny.UI.UIStyle.Custom;
uiLabel37.StyleCustomMode = true;
uiLabel37.TabIndex = 8;
uiLabel37.Text = "余辉时间(s):";
uiLabel37.TextAlign = ContentAlignment.MiddleLeft;
//
// uiButton10
// uiLabel38
//
uiButton10.Cursor = Cursors.Hand;
uiButton10.FillColor = Color.FromArgb(64, 158, 255);
uiButton10.FillColor2 = Color.FromArgb(64, 158, 255);
uiButton10.FillHoverColor = Color.FromArgb(102, 177, 255);
uiButton10.FillPressColor = Color.FromArgb(47, 144, 255);
uiButton10.FillSelectedColor = Color.FromArgb(47, 144, 255);
uiButton10.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiButton10.Location = new Point(302, 15);
uiButton10.MinimumSize = new Size(1, 1);
uiButton10.Name = "uiButton10";
uiButton10.Radius = 6;
uiButton10.RectColor = Color.FromArgb(64, 158, 255);
uiButton10.RectHoverColor = Color.FromArgb(102, 177, 255);
uiButton10.RectPressColor = Color.FromArgb(47, 144, 255);
uiButton10.RectSelectedColor = Color.FromArgb(47, 144, 255);
uiButton10.Size = new Size(150, 45);
uiButton10.Style = Sunny.UI.UIStyle.Custom;
uiButton10.StyleCustomMode = true;
uiButton10.TabIndex = 12;
uiButton10.Text = "返回主页";
uiButton10.TipsFont = new Font("宋体", 9F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiButton10.Click += uiButton10_Click;
uiLabel38.Font = new Font("微软雅黑", 12F, FontStyle.Bold, GraphicsUnit.Point, 134);
uiLabel38.ForeColor = Color.FromArgb(64, 158, 255);
uiLabel38.Location = new Point(232, 294);
uiLabel38.Name = "uiLabel38";
uiLabel38.Size = new Size(246, 31);
uiLabel38.Style = Sunny.UI.UIStyle.Custom;
uiLabel38.StyleCustomMode = true;
uiLabel38.TabIndex = 7;
uiLabel38.TextAlign = ContentAlignment.MiddleCenter;
//
// uiButton9
// uiLabel39
//
uiButton9.Cursor = Cursors.Hand;
uiButton9.FillColor = Color.FromArgb(245, 108, 108);
uiButton9.FillColor2 = Color.FromArgb(245, 108, 108);
uiButton9.FillHoverColor = Color.FromArgb(247, 136, 136);
uiButton9.FillPressColor = Color.FromArgb(230, 81, 81);
uiButton9.FillSelectedColor = Color.FromArgb(230, 81, 81);
uiButton9.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiButton9.Location = new Point(660, 15);
uiButton9.MinimumSize = new Size(1, 1);
uiButton9.Name = "uiButton9";
uiButton9.Radius = 6;
uiButton9.RectColor = Color.FromArgb(245, 108, 108);
uiButton9.RectHoverColor = Color.FromArgb(247, 136, 136);
uiButton9.RectPressColor = Color.FromArgb(230, 81, 81);
uiButton9.RectSelectedColor = Color.FromArgb(230, 81, 81);
uiButton9.Size = new Size(150, 45);
uiButton9.Style = Sunny.UI.UIStyle.Custom;
uiButton9.StyleCustomMode = true;
uiButton9.TabIndex = 9;
uiButton9.Text = "清除记录";
uiButton9.TipsFont = new Font("宋体", 9F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel39.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel39.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel39.Location = new Point(90, 294);
uiLabel39.Name = "uiLabel39";
uiLabel39.Size = new Size(136, 31);
uiLabel39.Style = Sunny.UI.UIStyle.Custom;
uiLabel39.StyleCustomMode = true;
uiLabel39.TabIndex = 6;
uiLabel39.Text = "点火时间(s):";
uiLabel39.TextAlign = ContentAlignment.MiddleLeft;
//
// uiButton8
// uiLabel40
//
uiButton8.Cursor = Cursors.Hand;
uiButton8.FillColor = Color.FromArgb(103, 194, 58);
uiButton8.FillColor2 = Color.FromArgb(103, 194, 58);
uiButton8.FillHoverColor = Color.FromArgb(133, 206, 97);
uiButton8.FillPressColor = Color.FromArgb(84, 178, 38);
uiButton8.FillSelectedColor = Color.FromArgb(84, 178, 38);
uiButton8.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiButton8.Location = new Point(480, 15);
uiButton8.MinimumSize = new Size(1, 1);
uiButton8.Name = "uiButton8";
uiButton8.Radius = 6;
uiButton8.RectColor = Color.FromArgb(103, 194, 58);
uiButton8.RectHoverColor = Color.FromArgb(133, 206, 97);
uiButton8.RectPressColor = Color.FromArgb(84, 178, 38);
uiButton8.RectSelectedColor = Color.FromArgb(84, 178, 38);
uiButton8.Size = new Size(150, 45);
uiButton8.Style = Sunny.UI.UIStyle.Custom;
uiButton8.StyleCustomMode = true;
uiButton8.TabIndex = 8;
uiButton8.Text = "保存记录";
uiButton8.TipsFont = new Font("宋体", 9F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel40.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel40.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel40.Location = new Point(90, 135);
uiLabel40.Name = "uiLabel40";
uiLabel40.Size = new Size(136, 31);
uiLabel40.Style = Sunny.UI.UIStyle.Custom;
uiLabel40.StyleCustomMode = true;
uiLabel40.TabIndex = 4;
uiLabel40.Text = "氧浓度:";
uiLabel40.TextAlign = ContentAlignment.MiddleLeft;
//
// uiPanel4
// uiLabel41
//
uiPanel4.BackColor = Color.White;
uiPanel4.Controls.Add(uiDataGridView1);
uiPanel4.Dock = DockStyle.Fill;
uiPanel4.FillColor = Color.White;
uiPanel4.Font = new Font("微软雅黑", 9F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiPanel4.Location = new Point(4, 5);
uiPanel4.Margin = new Padding(4, 5, 4, 5);
uiPanel4.MinimumSize = new Size(1, 1);
uiPanel4.Name = "uiPanel4";
uiPanel4.Padding = new Padding(1);
uiPanel4.Radius = 0;
uiPanel4.RectColor = Color.FromArgb(220, 223, 230);
uiPanel4.Size = new Size(930, 560);
uiPanel4.Style = Sunny.UI.UIStyle.Custom;
uiPanel4.StyleCustomMode = true;
uiPanel4.TabIndex = 0;
uiPanel4.Text = null;
uiPanel4.TextAlignment = ContentAlignment.MiddleCenter;
uiLabel41.Font = new Font("微软雅黑", 12F, FontStyle.Bold, GraphicsUnit.Point, 134);
uiLabel41.ForeColor = Color.FromArgb(64, 158, 255);
uiLabel41.Location = new Point(260, 241);
uiLabel41.Name = "uiLabel41";
uiLabel41.Size = new Size(169, 31);
uiLabel41.Style = Sunny.UI.UIStyle.Custom;
uiLabel41.StyleCustomMode = true;
uiLabel41.TabIndex = 3;
uiLabel41.TextAlign = ContentAlignment.MiddleCenter;
//
// uiDataGridView1
// uiLabel42
//
dataGridViewCellStyle11.BackColor = Color.FromArgb(250, 252, 255);
uiDataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle11;
uiDataGridView1.BackgroundColor = Color.White;
uiDataGridView1.ColumnHeadersBorderStyle = DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle12.Alignment = DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle12.BackColor = Color.FromArgb(64, 158, 255);
dataGridViewCellStyle12.Font = new Font("微软雅黑", 10F, FontStyle.Regular, GraphicsUnit.Point, 134);
dataGridViewCellStyle12.ForeColor = Color.White;
dataGridViewCellStyle12.SelectionBackColor = SystemColors.Highlight;
dataGridViewCellStyle12.SelectionForeColor = SystemColors.HighlightText;
dataGridViewCellStyle12.WrapMode = DataGridViewTriState.True;
uiDataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle12;
uiDataGridView1.ColumnHeadersHeight = 40;
uiDataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
uiDataGridView1.Columns.AddRange(new DataGridViewColumn[] { Column1, Column7, Column2, Column3, Column4, Column5, Column6 });
dataGridViewCellStyle13.Alignment = DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle13.BackColor = SystemColors.Window;
dataGridViewCellStyle13.Font = new Font("微软雅黑", 10F, FontStyle.Regular, GraphicsUnit.Point, 134);
dataGridViewCellStyle13.ForeColor = Color.FromArgb(48, 48, 48);
dataGridViewCellStyle13.SelectionBackColor = Color.FromArgb(235, 243, 255);
dataGridViewCellStyle13.SelectionForeColor = Color.FromArgb(48, 49, 51);
dataGridViewCellStyle13.WrapMode = DataGridViewTriState.False;
uiDataGridView1.DefaultCellStyle = dataGridViewCellStyle13;
uiDataGridView1.Dock = DockStyle.Fill;
uiDataGridView1.EnableHeadersVisualStyles = false;
uiDataGridView1.Font = new Font("微软雅黑", 10F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiDataGridView1.GridColor = Color.FromArgb(220, 223, 230);
uiDataGridView1.Location = new Point(1, 1);
uiDataGridView1.Name = "uiDataGridView1";
uiDataGridView1.RowHeadersBorderStyle = DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle14.Alignment = DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle14.BackColor = Color.FromArgb(250, 252, 255);
dataGridViewCellStyle14.Font = new Font("微软雅黑", 10F, FontStyle.Regular, GraphicsUnit.Point, 134);
dataGridViewCellStyle14.ForeColor = Color.FromArgb(48, 48, 48);
dataGridViewCellStyle14.SelectionBackColor = Color.FromArgb(64, 158, 255);
dataGridViewCellStyle14.SelectionForeColor = Color.White;
dataGridViewCellStyle14.WrapMode = DataGridViewTriState.True;
uiDataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle14;
uiDataGridView1.RowHeadersWidth = 62;
dataGridViewCellStyle15.BackColor = Color.White;
dataGridViewCellStyle15.Font = new Font("微软雅黑", 10F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiDataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle15;
uiDataGridView1.SelectedIndex = -1;
uiDataGridView1.Size = new Size(928, 558);
uiDataGridView1.StripeOddColor = Color.FromArgb(250, 252, 255);
uiDataGridView1.TabIndex = 0;
uiLabel42.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel42.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel42.Location = new Point(90, 241);
uiLabel42.Name = "uiLabel42";
uiLabel42.Size = new Size(144, 31);
uiLabel42.Style = Sunny.UI.UIStyle.Custom;
uiLabel42.StyleCustomMode = true;
uiLabel42.TabIndex = 2;
uiLabel42.Text = "背面温度(°C):";
uiLabel42.TextAlign = ContentAlignment.MiddleLeft;
//
// Column1
// uiLabel43
//
Column1.HeaderText = "测试项";
Column1.MinimumWidth = 8;
Column1.Name = "Column1";
Column1.ReadOnly = true;
Column1.Width = 150;
uiLabel43.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel43.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel43.Location = new Point(90, 78);
uiLabel43.Name = "uiLabel43";
uiLabel43.Size = new Size(124, 31);
uiLabel43.Style = Sunny.UI.UIStyle.Custom;
uiLabel43.StyleCustomMode = true;
uiLabel43.TabIndex = 0;
uiLabel43.Text = "测试样品项:";
uiLabel43.TextAlign = ContentAlignment.MiddleLeft;
//
// Column7
// uiLabel44
//
Column7.HeaderText = "是否自熄";
Column7.MinimumWidth = 8;
Column7.Name = "Column7";
Column7.ReadOnly = true;
Column7.Width = 150;
uiLabel44.Font = new Font("微软雅黑", 12F, FontStyle.Bold, GraphicsUnit.Point, 134);
uiLabel44.ForeColor = Color.FromArgb(64, 158, 255);
uiLabel44.Location = new Point(260, 185);
uiLabel44.Name = "uiLabel44";
uiLabel44.Size = new Size(169, 31);
uiLabel44.Style = Sunny.UI.UIStyle.Custom;
uiLabel44.StyleCustomMode = true;
uiLabel44.TabIndex = 21;
uiLabel44.TextAlign = ContentAlignment.MiddleCenter;
//
// Column2
// uiLabel45
//
Column2.HeaderText = "分类结果";
Column2.MinimumWidth = 8;
Column2.Name = "Column2";
Column2.ReadOnly = true;
Column2.Width = 150;
//
// Column3
//
Column3.HeaderText = "氧浓度(%)";
Column3.MinimumWidth = 8;
Column3.Name = "Column3";
Column3.ReadOnly = true;
Column3.Width = 150;
//
// Column4
//
Column4.HeaderText = "点火时间(s)";
Column4.MinimumWidth = 8;
Column4.Name = "Column4";
Column4.ReadOnly = true;
Column4.Width = 150;
//
// Column5
//
Column5.HeaderText = "余焰时间(s)";
Column5.MinimumWidth = 8;
Column5.Name = "Column5";
Column5.ReadOnly = true;
Column5.Width = 150;
//
// Column6
//
Column6.HeaderText = "余辉时间(s)";
Column6.MinimumWidth = 8;
Column6.Name = "Column6";
Column6.ReadOnly = true;
Column6.Width = 150;
uiLabel45.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel45.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel45.Location = new Point(90, 185);
uiLabel45.Name = "uiLabel45";
uiLabel45.Size = new Size(136, 31);
uiLabel45.Style = Sunny.UI.UIStyle.Custom;
uiLabel45.StyleCustomMode = true;
uiLabel45.TabIndex = 20;
uiLabel45.Text = "分类结果:";
uiLabel45.TextAlign = ContentAlignment.MiddleLeft;
//
// PenetrationForm
//
@@ -1453,10 +1400,6 @@
uiTableLayoutPanel5.ResumeLayout(false);
uiGroupBox5.ResumeLayout(false);
uiGroupBox4.ResumeLayout(false);
uiTableLayoutPanel6.ResumeLayout(false);
uiPanel5.ResumeLayout(false);
uiPanel4.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)uiDataGridView1).EndInit();
ResumeLayout(false);
}
@@ -1494,23 +1437,6 @@
private Sunny.UI.UITableLayoutPanel uiTableLayoutPanel5;
private Sunny.UI.UIGroupBox uiGroupBox5;
private Sunny.UI.UILabel uiLabel16;
private Sunny.UI.UIGroupBox uiGroupBox4;
private Sunny.UI.UILabel uiLabel21;
private Sunny.UI.UILabel uiLabel22;
private Sunny.UI.UILabel uiLabel19;
private Sunny.UI.UILabel uiLabel20;
private Sunny.UI.UILabel uiLabel18;
private Sunny.UI.UILabel uiLabel17;
private Sunny.UI.UITableLayoutPanel uiTableLayoutPanel6;
private Sunny.UI.UIPanel uiPanel4;
private Sunny.UI.UIDataGridView uiDataGridView1;
private DataGridViewTextBoxColumn Column1;
private DataGridViewTextBoxColumn Column7;
private DataGridViewTextBoxColumn Column2;
private DataGridViewTextBoxColumn Column3;
private DataGridViewTextBoxColumn Column4;
private DataGridViewTextBoxColumn Column5;
private DataGridViewTextBoxColumn Column6;
private Sunny.UI.UITextBox uiTextBox1;
private Sunny.UI.UITextBox uiTextBox2;
private Sunny.UI.UILabel uiLabel2;
@@ -1529,14 +1455,31 @@
private Sunny.UI.UIButton uiButton3;
private Sunny.UI.UIButton uiButton2;
private Sunny.UI.UIButton uiButton1;
private Sunny.UI.UIPanel uiPanel5;
private Sunny.UI.UIButton uiButton10;
private Sunny.UI.UIButton uiButton9;
private Sunny.UI.UIButton uiButton8;
private StatusStrip statusStrip1;
private ToolStripStatusLabel toolStripStatusLabel1;
private Sunny.UI.UILabel uiLabel27;
private Sunny.UI.UIComboBox comkou;
private Sunny.UI.UIButton connect;
private Sunny.UI.UILabel uiLabel33;
private Sunny.UI.UILabel uiLabel34;
private Sunny.UI.UIGroupBox uiGroupBox4;
private Sunny.UI.UILabel uiLabel44;
private Sunny.UI.UILabel uiLabel45;
private Sunny.UI.UILabel uiLabel21;
private Sunny.UI.UILabel uiLabel17;
private Sunny.UI.UILabel uiLabel18;
private Sunny.UI.UILabel uiLabel19;
private Sunny.UI.UILabel uiLabel35;
private Sunny.UI.UILabel uiLabel20;
private Sunny.UI.UIComboBox uiComboBox2;
private Sunny.UI.UILabel uiLabel22;
private Sunny.UI.UILabel uiLabel36;
private Sunny.UI.UILabel uiLabel37;
private Sunny.UI.UILabel uiLabel38;
private Sunny.UI.UILabel uiLabel39;
private Sunny.UI.UILabel uiLabel40;
private Sunny.UI.UILabel uiLabel41;
private Sunny.UI.UILabel uiLabel42;
private Sunny.UI.UILabel uiLabel43;
}
}

View File

@@ -532,5 +532,10 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
#endregion
private void uiGroupBox4_Click(object sender, EventArgs e)
{
}
}
}

View File

@@ -123,25 +123,4 @@
<metadata name="statusStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column7.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column6.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>

View File

@@ -53,6 +53,8 @@
uiGroupBox3 = new Sunny.UI.UIGroupBox();
uiTableLayoutPanel3 = new Sunny.UI.UITableLayoutPanel();
uiPanel6 = new Sunny.UI.UIPanel();
uiLabel37 = new Sunny.UI.UILabel();
uiLabel38 = new Sunny.UI.UILabel();
uiLabel14 = new Sunny.UI.UILabel();
uiLight1 = new Sunny.UI.UILight();
uiButton7 = new Sunny.UI.UIButton();
@@ -70,25 +72,25 @@
uiLabel5 = new Sunny.UI.UILabel();
uiTableLayoutPanel4 = new Sunny.UI.UITableLayoutPanel();
uiTableLayoutPanel5 = new Sunny.UI.UITableLayoutPanel();
uiGroupBox5 = new Sunny.UI.UIGroupBox();
uiLabel16 = new Sunny.UI.UILabel();
uiGroupBox4 = new Sunny.UI.UIGroupBox();
uiLabel21 = new Sunny.UI.UILabel();
uiLabel27 = new Sunny.UI.UILabel();
uiLabel18 = new Sunny.UI.UILabel();
uiLabel34 = new Sunny.UI.UILabel();
uiLabel35 = new Sunny.UI.UILabel();
uiLabel18 = new Sunny.UI.UILabel();
uiLabel33 = new Sunny.UI.UILabel();
uiComboBox2 = new Sunny.UI.UIComboBox();
uiLabel27 = new Sunny.UI.UILabel();
uiLabel28 = new Sunny.UI.UILabel();
uiLabel29 = new Sunny.UI.UILabel();
uiLabel30 = new Sunny.UI.UILabel();
uiLabel31 = new Sunny.UI.UILabel();
uiLabel32 = new Sunny.UI.UILabel();
uiLabel21 = new Sunny.UI.UILabel();
uiLabel22 = new Sunny.UI.UILabel();
uiLabel19 = new Sunny.UI.UILabel();
uiLabel20 = new Sunny.UI.UILabel();
uiLabel17 = new Sunny.UI.UILabel();
uiGroupBox5 = new Sunny.UI.UIGroupBox();
uiLabel16 = new Sunny.UI.UILabel();
uiTableLayoutPanel1.SuspendLayout();
uiTableLayoutPanel2.SuspendLayout();
uiPanel3.SuspendLayout();
@@ -101,8 +103,8 @@
uiPanel6.SuspendLayout();
uiTableLayoutPanel4.SuspendLayout();
uiTableLayoutPanel5.SuspendLayout();
uiGroupBox5.SuspendLayout();
uiGroupBox4.SuspendLayout();
uiGroupBox5.SuspendLayout();
SuspendLayout();
//
// uiTableLayoutPanel1
@@ -394,7 +396,7 @@
//
uiLabel36.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel36.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel36.Location = new Point(40, 178);
uiLabel36.Location = new Point(40, 169);
uiLabel36.Name = "uiLabel36";
uiLabel36.Size = new Size(173, 34);
uiLabel36.Style = Sunny.UI.UIStyle.Custom;
@@ -410,7 +412,7 @@
uiComboBox1.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiComboBox1.ItemHoverColor = Color.FromArgb(245, 247, 250);
uiComboBox1.ItemSelectForeColor = Color.FromArgb(64, 158, 255);
uiComboBox1.Location = new Point(220, 118);
uiComboBox1.Location = new Point(220, 120);
uiComboBox1.Margin = new Padding(4, 5, 4, 5);
uiComboBox1.MinimumSize = new Size(63, 0);
uiComboBox1.Name = "uiComboBox1";
@@ -431,7 +433,7 @@
//
uiLabel6.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel6.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel6.Location = new Point(40, 128);
uiLabel6.Location = new Point(40, 127);
uiLabel6.Name = "uiLabel6";
uiLabel6.Size = new Size(173, 34);
uiLabel6.Style = Sunny.UI.UIStyle.Custom;
@@ -444,7 +446,7 @@
//
uiLabel3.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel3.ForeColor = Color.FromArgb(64, 158, 255);
uiLabel3.Location = new Point(220, 88);
uiLabel3.Location = new Point(220, 84);
uiLabel3.Name = "uiLabel3";
uiLabel3.Size = new Size(127, 34);
uiLabel3.Style = Sunny.UI.UIStyle.Custom;
@@ -457,7 +459,7 @@
//
uiLabel4.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel4.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel4.Location = new Point(40, 88);
uiLabel4.Location = new Point(40, 85);
uiLabel4.Name = "uiLabel4";
uiLabel4.Size = new Size(173, 34);
uiLabel4.Style = Sunny.UI.UIStyle.Custom;
@@ -470,7 +472,7 @@
//
uiLabel2.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel2.ForeColor = Color.FromArgb(64, 158, 255);
uiLabel2.Location = new Point(220, 49);
uiLabel2.Location = new Point(220, 43);
uiLabel2.Name = "uiLabel2";
uiLabel2.Size = new Size(127, 34);
uiLabel2.Style = Sunny.UI.UIStyle.Custom;
@@ -483,7 +485,7 @@
//
uiLabel1.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel1.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel1.Location = new Point(40, 49);
uiLabel1.Location = new Point(40, 43);
uiLabel1.Name = "uiLabel1";
uiLabel1.Size = new Size(163, 34);
uiLabel1.Style = Sunny.UI.UIStyle.Custom;
@@ -553,6 +555,8 @@
// uiPanel6
//
uiPanel6.BackColor = Color.White;
uiPanel6.Controls.Add(uiLabel37);
uiPanel6.Controls.Add(uiLabel38);
uiPanel6.Controls.Add(uiLabel14);
uiPanel6.Controls.Add(uiLight1);
uiPanel6.Controls.Add(uiButton7);
@@ -585,6 +589,32 @@
uiPanel6.Text = null;
uiPanel6.TextAlignment = ContentAlignment.MiddleCenter;
//
// uiLabel37
//
uiLabel37.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel37.ForeColor = Color.FromArgb(64, 158, 255);
uiLabel37.Location = new Point(541, 78);
uiLabel37.Name = "uiLabel37";
uiLabel37.Size = new Size(150, 34);
uiLabel37.Style = Sunny.UI.UIStyle.Custom;
uiLabel37.StyleCustomMode = true;
uiLabel37.TabIndex = 17;
uiLabel37.Text = "0.0";
uiLabel37.TextAlign = ContentAlignment.MiddleLeft;
//
// uiLabel38
//
uiLabel38.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel38.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel38.Location = new Point(380, 78);
uiLabel38.Name = "uiLabel38";
uiLabel38.Size = new Size(149, 34);
uiLabel38.Style = Sunny.UI.UIStyle.Custom;
uiLabel38.StyleCustomMode = true;
uiLabel38.TabIndex = 16;
uiLabel38.Text = "总测试时长(s):";
uiLabel38.TextAlign = ContentAlignment.MiddleLeft;
//
// uiLabel14
//
uiLabel14.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
@@ -704,9 +734,9 @@
//
uiLabel12.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel12.ForeColor = Color.FromArgb(64, 158, 255);
uiLabel12.Location = new Point(185, 220);
uiLabel12.Location = new Point(185, 219);
uiLabel12.Name = "uiLabel12";
uiLabel12.Size = new Size(240, 34);
uiLabel12.Size = new Size(180, 34);
uiLabel12.Style = Sunny.UI.UIStyle.Custom;
uiLabel12.StyleCustomMode = true;
uiLabel12.TabIndex = 9;
@@ -717,7 +747,7 @@
//
uiLabel13.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel13.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel13.Location = new Point(32, 220);
uiLabel13.Location = new Point(30, 219);
uiLabel13.Name = "uiLabel13";
uiLabel13.Size = new Size(133, 34);
uiLabel13.Style = Sunny.UI.UIStyle.Custom;
@@ -757,11 +787,10 @@
uiLabel10.ForeColor = Color.FromArgb(64, 158, 255);
uiLabel10.Location = new Point(185, 18);
uiLabel10.Name = "uiLabel10";
uiLabel10.Size = new Size(240, 34);
uiLabel10.Size = new Size(180, 34);
uiLabel10.Style = Sunny.UI.UIStyle.Custom;
uiLabel10.StyleCustomMode = true;
uiLabel10.TabIndex = 5;
uiLabel10.Text = "初次点火测试";
uiLabel10.TextAlign = ContentAlignment.MiddleLeft;
//
// uiLabel11
@@ -781,9 +810,9 @@
//
uiLabel8.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel8.ForeColor = Color.FromArgb(64, 158, 255);
uiLabel8.Location = new Point(185, 148);
uiLabel8.Location = new Point(185, 152);
uiLabel8.Name = "uiLabel8";
uiLabel8.Size = new Size(240, 34);
uiLabel8.Size = new Size(180, 34);
uiLabel8.Style = Sunny.UI.UIStyle.Custom;
uiLabel8.StyleCustomMode = true;
uiLabel8.TabIndex = 3;
@@ -794,7 +823,7 @@
//
uiLabel9.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel9.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel9.Location = new Point(30, 148);
uiLabel9.Location = new Point(30, 152);
uiLabel9.Name = "uiLabel9";
uiLabel9.Size = new Size(133, 34);
uiLabel9.Style = Sunny.UI.UIStyle.Custom;
@@ -807,9 +836,9 @@
//
uiLabel7.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel7.ForeColor = Color.FromArgb(64, 158, 255);
uiLabel7.Location = new Point(185, 78);
uiLabel7.Location = new Point(185, 85);
uiLabel7.Name = "uiLabel7";
uiLabel7.Size = new Size(240, 34);
uiLabel7.Size = new Size(180, 34);
uiLabel7.Style = Sunny.UI.UIStyle.Custom;
uiLabel7.StyleCustomMode = true;
uiLabel7.TabIndex = 1;
@@ -820,7 +849,7 @@
//
uiLabel5.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel5.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel5.Location = new Point(30, 78);
uiLabel5.Location = new Point(30, 85);
uiLabel5.Name = "uiLabel5";
uiLabel5.Size = new Size(133, 34);
uiLabel5.Style = Sunny.UI.UIStyle.Custom;
@@ -849,8 +878,8 @@
uiTableLayoutPanel5.ColumnCount = 2;
uiTableLayoutPanel5.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F));
uiTableLayoutPanel5.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F));
uiTableLayoutPanel5.Controls.Add(uiGroupBox5, 1, 0);
uiTableLayoutPanel5.Controls.Add(uiGroupBox4, 0, 0);
uiTableLayoutPanel5.Controls.Add(uiGroupBox5, 1, 0);
uiTableLayoutPanel5.Dock = DockStyle.Fill;
uiTableLayoutPanel5.Location = new Point(3, 3);
uiTableLayoutPanel5.Name = "uiTableLayoutPanel5";
@@ -860,6 +889,250 @@
uiTableLayoutPanel5.TabIndex = 2;
uiTableLayoutPanel5.TagString = null;
//
// uiGroupBox4
//
uiGroupBox4.BackColor = Color.White;
uiGroupBox4.Controls.Add(uiLabel21);
uiGroupBox4.Controls.Add(uiLabel27);
uiGroupBox4.Controls.Add(uiLabel18);
uiGroupBox4.Controls.Add(uiLabel34);
uiGroupBox4.Controls.Add(uiLabel35);
uiGroupBox4.Controls.Add(uiLabel33);
uiGroupBox4.Controls.Add(uiComboBox2);
uiGroupBox4.Controls.Add(uiLabel28);
uiGroupBox4.Controls.Add(uiLabel29);
uiGroupBox4.Controls.Add(uiLabel30);
uiGroupBox4.Controls.Add(uiLabel31);
uiGroupBox4.Controls.Add(uiLabel32);
uiGroupBox4.Controls.Add(uiLabel22);
uiGroupBox4.Controls.Add(uiLabel19);
uiGroupBox4.Controls.Add(uiLabel20);
uiGroupBox4.Controls.Add(uiLabel17);
uiGroupBox4.Dock = DockStyle.Fill;
uiGroupBox4.FillColor = Color.White;
uiGroupBox4.Font = new Font("微软雅黑", 11F, FontStyle.Bold, GraphicsUnit.Point, 134);
uiGroupBox4.ForeColor = Color.FromArgb(48, 49, 51);
uiGroupBox4.Location = new Point(4, 5);
uiGroupBox4.Margin = new Padding(4, 5, 4, 5);
uiGroupBox4.MinimumSize = new Size(1, 1);
uiGroupBox4.Name = "uiGroupBox4";
uiGroupBox4.Padding = new Padding(0, 32, 0, 0);
uiGroupBox4.Radius = 6;
uiGroupBox4.RectColor = Color.FromArgb(220, 223, 230);
uiGroupBox4.Size = new Size(556, 918);
uiGroupBox4.Style = Sunny.UI.UIStyle.Custom;
uiGroupBox4.StyleCustomMode = true;
uiGroupBox4.TabIndex = 0;
uiGroupBox4.Text = "测试结果";
uiGroupBox4.TextAlignment = ContentAlignment.MiddleLeft;
//
// uiLabel21
//
uiLabel21.Font = new Font("微软雅黑", 12F, FontStyle.Bold, GraphicsUnit.Point, 134);
uiLabel21.ForeColor = Color.FromArgb(64, 158, 255);
uiLabel21.Location = new Point(242, 135);
uiLabel21.Name = "uiLabel21";
uiLabel21.Size = new Size(265, 31);
uiLabel21.Style = Sunny.UI.UIStyle.Custom;
uiLabel21.StyleCustomMode = true;
uiLabel21.TabIndex = 19;
uiLabel21.TextAlign = ContentAlignment.MiddleCenter;
//
// uiLabel27
//
uiLabel27.Font = new Font("微软雅黑", 12F, FontStyle.Bold, GraphicsUnit.Point, 134);
uiLabel27.ForeColor = Color.FromArgb(64, 158, 255);
uiLabel27.Location = new Point(289, 294);
uiLabel27.Name = "uiLabel27";
uiLabel27.Size = new Size(169, 31);
uiLabel27.Style = Sunny.UI.UIStyle.Custom;
uiLabel27.StyleCustomMode = true;
uiLabel27.TabIndex = 18;
uiLabel27.TextAlign = ContentAlignment.MiddleCenter;
//
// uiLabel18
//
uiLabel18.Font = new Font("微软雅黑", 12F, FontStyle.Bold, GraphicsUnit.Point, 134);
uiLabel18.ForeColor = Color.FromArgb(103, 194, 58);
uiLabel18.Location = new Point(289, 396);
uiLabel18.Name = "uiLabel18";
uiLabel18.Size = new Size(169, 31);
uiLabel18.Style = Sunny.UI.UIStyle.Custom;
uiLabel18.StyleCustomMode = true;
uiLabel18.TabIndex = 17;
uiLabel18.TextAlign = ContentAlignment.MiddleCenter;
//
// uiLabel34
//
uiLabel34.Font = new Font("微软雅黑", 12F, FontStyle.Bold, GraphicsUnit.Point, 134);
uiLabel34.ForeColor = Color.FromArgb(64, 158, 255);
uiLabel34.Location = new Point(289, 453);
uiLabel34.Name = "uiLabel34";
uiLabel34.Size = new Size(169, 31);
uiLabel34.Style = Sunny.UI.UIStyle.Custom;
uiLabel34.StyleCustomMode = true;
uiLabel34.TabIndex = 16;
uiLabel34.TextAlign = ContentAlignment.MiddleCenter;
//
// uiLabel35
//
uiLabel35.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel35.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel35.Location = new Point(119, 453);
uiLabel35.Name = "uiLabel35";
uiLabel35.Size = new Size(169, 31);
uiLabel35.Style = Sunny.UI.UIStyle.Custom;
uiLabel35.StyleCustomMode = true;
uiLabel35.TabIndex = 15;
uiLabel35.Text = "总测试时长(s):";
uiLabel35.TextAlign = ContentAlignment.MiddleLeft;
//
// uiLabel33
//
uiLabel33.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel33.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel33.Location = new Point(119, 400);
uiLabel33.Name = "uiLabel33";
uiLabel33.Size = new Size(136, 31);
uiLabel33.Style = Sunny.UI.UIStyle.Custom;
uiLabel33.StyleCustomMode = true;
uiLabel33.TabIndex = 13;
uiLabel33.Text = "是否自熄:";
uiLabel33.TextAlign = ContentAlignment.MiddleLeft;
//
// uiComboBox2
//
uiComboBox2.DataSource = null;
uiComboBox2.FillColor = Color.White;
uiComboBox2.Font = new Font("宋体", 12F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiComboBox2.ItemHoverColor = Color.FromArgb(155, 200, 255);
uiComboBox2.ItemSelectForeColor = Color.FromArgb(235, 243, 255);
uiComboBox2.Location = new Point(289, 74);
uiComboBox2.Margin = new Padding(4, 5, 4, 5);
uiComboBox2.MinimumSize = new Size(63, 0);
uiComboBox2.Name = "uiComboBox2";
uiComboBox2.Padding = new Padding(0, 0, 30, 2);
uiComboBox2.Size = new Size(188, 36);
uiComboBox2.SymbolSize = 24;
uiComboBox2.TabIndex = 12;
uiComboBox2.TextAlignment = ContentAlignment.MiddleLeft;
uiComboBox2.Watermark = "";
uiComboBox2.SelectedIndexChanged += uiComboBox2_SelectedIndexChanged;
//
// uiLabel28
//
uiLabel28.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel28.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel28.Location = new Point(119, 294);
uiLabel28.Name = "uiLabel28";
uiLabel28.Size = new Size(136, 31);
uiLabel28.Style = Sunny.UI.UIStyle.Custom;
uiLabel28.StyleCustomMode = true;
uiLabel28.TabIndex = 10;
uiLabel28.Text = "余焰时间(s):";
uiLabel28.TextAlign = ContentAlignment.MiddleLeft;
//
// uiLabel29
//
uiLabel29.Font = new Font("微软雅黑", 12F, FontStyle.Bold, GraphicsUnit.Point, 134);
uiLabel29.ForeColor = Color.FromArgb(64, 158, 255);
uiLabel29.Location = new Point(289, 347);
uiLabel29.Name = "uiLabel29";
uiLabel29.Size = new Size(169, 31);
uiLabel29.Style = Sunny.UI.UIStyle.Custom;
uiLabel29.StyleCustomMode = true;
uiLabel29.TabIndex = 9;
uiLabel29.TextAlign = ContentAlignment.MiddleCenter;
//
// uiLabel30
//
uiLabel30.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel30.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel30.Location = new Point(119, 347);
uiLabel30.Name = "uiLabel30";
uiLabel30.Size = new Size(136, 31);
uiLabel30.Style = Sunny.UI.UIStyle.Custom;
uiLabel30.StyleCustomMode = true;
uiLabel30.TabIndex = 8;
uiLabel30.Text = "余辉时间(s):";
uiLabel30.TextAlign = ContentAlignment.MiddleLeft;
//
// uiLabel31
//
uiLabel31.Font = new Font("微软雅黑", 12F, FontStyle.Bold, GraphicsUnit.Point, 134);
uiLabel31.ForeColor = Color.FromArgb(64, 158, 255);
uiLabel31.Location = new Point(261, 241);
uiLabel31.Name = "uiLabel31";
uiLabel31.Size = new Size(246, 31);
uiLabel31.Style = Sunny.UI.UIStyle.Custom;
uiLabel31.StyleCustomMode = true;
uiLabel31.TabIndex = 7;
uiLabel31.TextAlign = ContentAlignment.MiddleCenter;
//
// uiLabel32
//
uiLabel32.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel32.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel32.Location = new Point(119, 241);
uiLabel32.Name = "uiLabel32";
uiLabel32.Size = new Size(136, 31);
uiLabel32.Style = Sunny.UI.UIStyle.Custom;
uiLabel32.StyleCustomMode = true;
uiLabel32.TabIndex = 6;
uiLabel32.Text = "点火时间(s):";
uiLabel32.TextAlign = ContentAlignment.MiddleLeft;
//
// uiLabel22
//
uiLabel22.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel22.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel22.Location = new Point(119, 135);
uiLabel22.Name = "uiLabel22";
uiLabel22.Size = new Size(136, 31);
uiLabel22.Style = Sunny.UI.UIStyle.Custom;
uiLabel22.StyleCustomMode = true;
uiLabel22.TabIndex = 4;
uiLabel22.Text = "氧浓度:";
uiLabel22.TextAlign = ContentAlignment.MiddleLeft;
//
// uiLabel19
//
uiLabel19.Font = new Font("微软雅黑", 12F, FontStyle.Bold, GraphicsUnit.Point, 134);
uiLabel19.ForeColor = Color.FromArgb(64, 158, 255);
uiLabel19.Location = new Point(289, 188);
uiLabel19.Name = "uiLabel19";
uiLabel19.Size = new Size(169, 31);
uiLabel19.Style = Sunny.UI.UIStyle.Custom;
uiLabel19.StyleCustomMode = true;
uiLabel19.TabIndex = 3;
uiLabel19.TextAlign = ContentAlignment.MiddleCenter;
//
// uiLabel20
//
uiLabel20.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel20.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel20.Location = new Point(119, 188);
uiLabel20.Name = "uiLabel20";
uiLabel20.Size = new Size(136, 31);
uiLabel20.Style = Sunny.UI.UIStyle.Custom;
uiLabel20.StyleCustomMode = true;
uiLabel20.TabIndex = 2;
uiLabel20.Text = "分类结果:";
uiLabel20.TextAlign = ContentAlignment.MiddleLeft;
//
// uiLabel17
//
uiLabel17.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel17.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel17.Location = new Point(119, 78);
uiLabel17.Name = "uiLabel17";
uiLabel17.Size = new Size(124, 31);
uiLabel17.Style = Sunny.UI.UIStyle.Custom;
uiLabel17.StyleCustomMode = true;
uiLabel17.TabIndex = 0;
uiLabel17.Text = "测试样品项:";
uiLabel17.TextAlign = ContentAlignment.MiddleLeft;
//
// uiGroupBox5
//
uiGroupBox5.BackColor = Color.White;
@@ -894,258 +1167,6 @@
uiLabel16.TabIndex = 0;
uiLabel16.Text = "I1: 未点火\r\nI2: 点火后自熄\r\nI3: 点火时间 > 4s 且不自熄\r\nI4: 点火时间 ≤ 4s 且不自熄\r\n\r\n根据 BS EN ISO 11810:2015 标准";
//
// uiGroupBox4
//
uiGroupBox4.BackColor = Color.White;
uiGroupBox4.Controls.Add(uiLabel34);
uiGroupBox4.Controls.Add(uiLabel35);
uiGroupBox4.Controls.Add(uiLabel18);
uiGroupBox4.Controls.Add(uiLabel33);
uiGroupBox4.Controls.Add(uiComboBox2);
uiGroupBox4.Controls.Add(uiLabel27);
uiGroupBox4.Controls.Add(uiLabel28);
uiGroupBox4.Controls.Add(uiLabel29);
uiGroupBox4.Controls.Add(uiLabel30);
uiGroupBox4.Controls.Add(uiLabel31);
uiGroupBox4.Controls.Add(uiLabel32);
uiGroupBox4.Controls.Add(uiLabel21);
uiGroupBox4.Controls.Add(uiLabel22);
uiGroupBox4.Controls.Add(uiLabel19);
uiGroupBox4.Controls.Add(uiLabel20);
uiGroupBox4.Controls.Add(uiLabel17);
uiGroupBox4.Dock = DockStyle.Fill;
uiGroupBox4.FillColor = Color.White;
uiGroupBox4.Font = new Font("微软雅黑", 11F, FontStyle.Bold, GraphicsUnit.Point, 134);
uiGroupBox4.ForeColor = Color.FromArgb(48, 49, 51);
uiGroupBox4.Location = new Point(4, 5);
uiGroupBox4.Margin = new Padding(4, 5, 4, 5);
uiGroupBox4.MinimumSize = new Size(1, 1);
uiGroupBox4.Name = "uiGroupBox4";
uiGroupBox4.Padding = new Padding(0, 32, 0, 0);
uiGroupBox4.Radius = 6;
uiGroupBox4.RectColor = Color.FromArgb(220, 223, 230);
uiGroupBox4.Size = new Size(556, 918);
uiGroupBox4.Style = Sunny.UI.UIStyle.Custom;
uiGroupBox4.StyleCustomMode = true;
uiGroupBox4.TabIndex = 0;
uiGroupBox4.Text = "测试结果";
uiGroupBox4.TextAlignment = ContentAlignment.MiddleLeft;
//
// uiLabel34
//
uiLabel34.Font = new Font("微软雅黑", 12F, FontStyle.Bold, GraphicsUnit.Point, 134);
uiLabel34.ForeColor = Color.FromArgb(64, 158, 255);
uiLabel34.Location = new Point(200, 439);
uiLabel34.Name = "uiLabel34";
uiLabel34.Size = new Size(169, 31);
uiLabel34.Style = Sunny.UI.UIStyle.Custom;
uiLabel34.StyleCustomMode = true;
uiLabel34.TabIndex = 16;
uiLabel34.Text = "I1";
uiLabel34.TextAlign = ContentAlignment.MiddleCenter;
//
// uiLabel35
//
uiLabel35.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel35.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel35.Location = new Point(70, 439);
uiLabel35.Name = "uiLabel35";
uiLabel35.Size = new Size(132, 31);
uiLabel35.Style = Sunny.UI.UIStyle.Custom;
uiLabel35.StyleCustomMode = true;
uiLabel35.TabIndex = 15;
uiLabel35.Text = "总测试时长:";
uiLabel35.TextAlign = ContentAlignment.MiddleLeft;
//
// uiLabel18
//
uiLabel18.Font = new Font("微软雅黑", 12F, FontStyle.Bold, GraphicsUnit.Point, 134);
uiLabel18.ForeColor = Color.FromArgb(64, 158, 255);
uiLabel18.Location = new Point(200, 394);
uiLabel18.Name = "uiLabel18";
uiLabel18.Size = new Size(169, 31);
uiLabel18.Style = Sunny.UI.UIStyle.Custom;
uiLabel18.StyleCustomMode = true;
uiLabel18.TabIndex = 14;
uiLabel18.Text = "I1";
uiLabel18.TextAlign = ContentAlignment.MiddleCenter;
//
// uiLabel33
//
uiLabel33.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel33.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel33.Location = new Point(70, 394);
uiLabel33.Name = "uiLabel33";
uiLabel33.Size = new Size(132, 31);
uiLabel33.Style = Sunny.UI.UIStyle.Custom;
uiLabel33.StyleCustomMode = true;
uiLabel33.TabIndex = 13;
uiLabel33.Text = "氧浓度:";
uiLabel33.TextAlign = ContentAlignment.MiddleLeft;
//
// uiComboBox2
//
uiComboBox2.DataSource = null;
uiComboBox2.FillColor = Color.White;
uiComboBox2.Font = new Font("宋体", 12F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiComboBox2.ItemHoverColor = Color.FromArgb(155, 200, 255);
uiComboBox2.ItemSelectForeColor = Color.FromArgb(235, 243, 255);
uiComboBox2.Location = new Point(202, 63);
uiComboBox2.Margin = new Padding(4, 5, 4, 5);
uiComboBox2.MinimumSize = new Size(63, 0);
uiComboBox2.Name = "uiComboBox2";
uiComboBox2.Padding = new Padding(0, 0, 30, 2);
uiComboBox2.Size = new Size(188, 36);
uiComboBox2.SymbolSize = 24;
uiComboBox2.TabIndex = 12;
uiComboBox2.Text = "uiComboBox2";
uiComboBox2.TextAlignment = ContentAlignment.MiddleLeft;
uiComboBox2.Watermark = "";
uiComboBox2.SelectedIndexChanged += uiComboBox2_SelectedIndexChanged;
//
// uiLabel27
//
uiLabel27.Font = new Font("微软雅黑", 12F, FontStyle.Bold, GraphicsUnit.Point, 134);
uiLabel27.ForeColor = Color.FromArgb(103, 194, 58);
uiLabel27.Location = new Point(200, 286);
uiLabel27.Name = "uiLabel27";
uiLabel27.Size = new Size(169, 31);
uiLabel27.Style = Sunny.UI.UIStyle.Custom;
uiLabel27.StyleCustomMode = true;
uiLabel27.TabIndex = 11;
uiLabel27.Text = "是";
uiLabel27.TextAlign = ContentAlignment.MiddleCenter;
//
// uiLabel28
//
uiLabel28.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel28.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel28.Location = new Point(70, 286);
uiLabel28.Name = "uiLabel28";
uiLabel28.Size = new Size(132, 31);
uiLabel28.Style = Sunny.UI.UIStyle.Custom;
uiLabel28.StyleCustomMode = true;
uiLabel28.TabIndex = 10;
uiLabel28.Text = "余晖时间:";
uiLabel28.TextAlign = ContentAlignment.MiddleLeft;
//
// uiLabel29
//
uiLabel29.Font = new Font("微软雅黑", 12F, FontStyle.Bold, GraphicsUnit.Point, 134);
uiLabel29.ForeColor = Color.FromArgb(64, 158, 255);
uiLabel29.Location = new Point(200, 348);
uiLabel29.Name = "uiLabel29";
uiLabel29.Size = new Size(169, 31);
uiLabel29.Style = Sunny.UI.UIStyle.Custom;
uiLabel29.StyleCustomMode = true;
uiLabel29.TabIndex = 9;
uiLabel29.Text = "I1";
uiLabel29.TextAlign = ContentAlignment.MiddleCenter;
//
// uiLabel30
//
uiLabel30.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel30.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel30.Location = new Point(70, 348);
uiLabel30.Name = "uiLabel30";
uiLabel30.Size = new Size(132, 31);
uiLabel30.Style = Sunny.UI.UIStyle.Custom;
uiLabel30.StyleCustomMode = true;
uiLabel30.TabIndex = 8;
uiLabel30.Text = "余焰时间:";
uiLabel30.TextAlign = ContentAlignment.MiddleLeft;
//
// uiLabel31
//
uiLabel31.Font = new Font("微软雅黑", 12F, FontStyle.Bold, GraphicsUnit.Point, 134);
uiLabel31.ForeColor = Color.FromArgb(64, 158, 255);
uiLabel31.Location = new Point(200, 229);
uiLabel31.Name = "uiLabel31";
uiLabel31.Size = new Size(169, 31);
uiLabel31.Style = Sunny.UI.UIStyle.Custom;
uiLabel31.StyleCustomMode = true;
uiLabel31.TabIndex = 7;
uiLabel31.Text = "1";
uiLabel31.TextAlign = ContentAlignment.MiddleCenter;
//
// uiLabel32
//
uiLabel32.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel32.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel32.Location = new Point(70, 229);
uiLabel32.Name = "uiLabel32";
uiLabel32.Size = new Size(124, 31);
uiLabel32.Style = Sunny.UI.UIStyle.Custom;
uiLabel32.StyleCustomMode = true;
uiLabel32.TabIndex = 6;
uiLabel32.Text = "点火时间:";
uiLabel32.TextAlign = ContentAlignment.MiddleLeft;
//
// uiLabel21
//
uiLabel21.Font = new Font("微软雅黑", 12F, FontStyle.Bold, GraphicsUnit.Point, 134);
uiLabel21.ForeColor = Color.FromArgb(103, 194, 58);
uiLabel21.Location = new Point(200, 117);
uiLabel21.Name = "uiLabel21";
uiLabel21.Size = new Size(169, 31);
uiLabel21.Style = Sunny.UI.UIStyle.Custom;
uiLabel21.StyleCustomMode = true;
uiLabel21.TabIndex = 5;
uiLabel21.Text = "是";
uiLabel21.TextAlign = ContentAlignment.MiddleCenter;
//
// uiLabel22
//
uiLabel22.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel22.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel22.Location = new Point(70, 117);
uiLabel22.Name = "uiLabel22";
uiLabel22.Size = new Size(132, 31);
uiLabel22.Style = Sunny.UI.UIStyle.Custom;
uiLabel22.StyleCustomMode = true;
uiLabel22.TabIndex = 4;
uiLabel22.Text = "是否自熄:";
uiLabel22.TextAlign = ContentAlignment.MiddleLeft;
//
// uiLabel19
//
uiLabel19.Font = new Font("微软雅黑", 12F, FontStyle.Bold, GraphicsUnit.Point, 134);
uiLabel19.ForeColor = Color.FromArgb(64, 158, 255);
uiLabel19.Location = new Point(200, 179);
uiLabel19.Name = "uiLabel19";
uiLabel19.Size = new Size(169, 31);
uiLabel19.Style = Sunny.UI.UIStyle.Custom;
uiLabel19.StyleCustomMode = true;
uiLabel19.TabIndex = 3;
uiLabel19.Text = "I1";
uiLabel19.TextAlign = ContentAlignment.MiddleCenter;
//
// uiLabel20
//
uiLabel20.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel20.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel20.Location = new Point(70, 179);
uiLabel20.Name = "uiLabel20";
uiLabel20.Size = new Size(132, 31);
uiLabel20.Style = Sunny.UI.UIStyle.Custom;
uiLabel20.StyleCustomMode = true;
uiLabel20.TabIndex = 2;
uiLabel20.Text = "分类结果:";
uiLabel20.TextAlign = ContentAlignment.MiddleLeft;
//
// uiLabel17
//
uiLabel17.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel17.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel17.Location = new Point(70, 60);
uiLabel17.Name = "uiLabel17";
uiLabel17.Size = new Size(124, 31);
uiLabel17.Style = Sunny.UI.UIStyle.Custom;
uiLabel17.StyleCustomMode = true;
uiLabel17.TabIndex = 0;
uiLabel17.Text = "测试样品项:";
uiLabel17.TextAlign = ContentAlignment.MiddleLeft;
//
// PrimaryIgnitionForm
//
AutoScaleMode = AutoScaleMode.None;
@@ -1156,7 +1177,7 @@
Padding = new Padding(0, 60, 0, 0);
Style = Sunny.UI.UIStyle.Custom;
StyleCustomMode = true;
Text = "初次点火测试 (Primary Ignition)";
Text = "初次点火测试(PrimaryIgnitionForm)";
TitleColor = Color.FromArgb(245, 108, 108);
TitleHeight = 60;
ZoomScaleRect = new Rectangle(22, 22, 800, 450);
@@ -1175,8 +1196,8 @@
uiPanel6.ResumeLayout(false);
uiTableLayoutPanel4.ResumeLayout(false);
uiTableLayoutPanel5.ResumeLayout(false);
uiGroupBox5.ResumeLayout(false);
uiGroupBox4.ResumeLayout(false);
uiGroupBox5.ResumeLayout(false);
ResumeLayout(false);
}
@@ -1225,12 +1246,10 @@
private Sunny.UI.UIGroupBox uiGroupBox5;
private Sunny.UI.UILabel uiLabel16;
private Sunny.UI.UIGroupBox uiGroupBox4;
private Sunny.UI.UILabel uiLabel21;
private Sunny.UI.UILabel uiLabel22;
private Sunny.UI.UILabel uiLabel19;
private Sunny.UI.UILabel uiLabel20;
private Sunny.UI.UILabel uiLabel17;
private Sunny.UI.UILabel uiLabel27;
private Sunny.UI.UILabel uiLabel28;
private Sunny.UI.UILabel uiLabel29;
private Sunny.UI.UILabel uiLabel30;
@@ -1239,9 +1258,13 @@
private Sunny.UI.UIComboBox uiComboBox2;
private Sunny.UI.UILabel uiLabel34;
private Sunny.UI.UILabel uiLabel35;
private Sunny.UI.UILabel uiLabel18;
private Sunny.UI.UILabel uiLabel33;
private Sunny.UI.UIComboBox uiComboBox3;
private Sunny.UI.UILabel uiLabel36;
private Sunny.UI.UILabel uiLabel37;
private Sunny.UI.UILabel uiLabel38;
private Sunny.UI.UILabel uiLabel18;
private Sunny.UI.UILabel uiLabel21;
private Sunny.UI.UILabel uiLabel27;
}
}

View File

@@ -14,6 +14,7 @@ using System.Threading.Tasks;
using System.Windows.Forms;
using .Data;
using .Model;
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
namespace
{
@@ -29,12 +30,15 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
private System.Windows.Forms.Timer _readtimer;
private readonly SemaphoreSlim _asyncLock = new SemaphoreSlim(1, 1);
private bool _isDisposed = false; // 添加释放标志
public PrimaryIgnitionForm()
{
InitializeComponent();
InitComboBoxPattern();
InitComboBox2Pattern();
InitTimer();
@@ -280,25 +284,319 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
}
}
public async Task<bool[]> ReadModbusCoilAsync(ushort registerAddress, ushort readCount)
{
if (_modbusMaster == null) return null;
return await Task.Run(async () =>
{
return await _modbusMaster.ReadCoilsAsync(1, registerAddress, readCount);
});
}
List<PrimaryIgnitionModel> reportList = new List<PrimaryIgnitionModel>();
private string classify;
private double yh;
private double yy;
private double costtime;
private async Task InsertReportAsync()
{
if (uiComboBox3.SelectedItem != null && uiComboBox3.Text.Trim() == "样品1")
{
bool[] value1 = await ReadModbusCoilAsync(110, 1);
bool[] value2 = await ReadModbusCoilAsync(120, 1);
bool[] value3 = await ReadModbusCoilAsync(130, 1);
bool[] value4 = await ReadModbusCoilAsync(140, 1);
ushort[] time = _modbusMaster?.ReadHoldingRegisters(1, 90, 2);
if (value1 != null && value1.Length > 0 && value1[0])
{
classify = "I4x";
ushort[] yhlocation = _modbusMaster?.ReadHoldingRegisters(1, 300, 4);
if (yhlocation != null && yhlocation.Length >= 3)
{
yh = yhlocation[0];
yy = yhlocation[2];
costtime = time[0];
}
}
else if (value2 != null && value2.Length > 0 && value2[0])
{
classify = "I3x";
ushort[] yhlocation = _modbusMaster?.ReadHoldingRegisters(1, 308, 4);
if (yhlocation != null && yhlocation.Length >= 3)
{
yh = yhlocation[0];
yy = yhlocation[2];
costtime = time[0];
}
}
else if (value3 != null && value3.Length > 0 && value3[0])
{
classify = "I2x";
ushort[] yhlocation = _modbusMaster?.ReadHoldingRegisters(1, 304, 4);
if (yhlocation != null && yhlocation.Length >= 3)
{
yh = yhlocation[0];
yy = yhlocation[2];
costtime = time[0];
}
}
else if (value4 != null && value4.Length > 0 && value4[0])
{
classify = "I1x";
yh = 0;
ushort[] yhlocation = _modbusMaster?.ReadHoldingRegisters(1, 314, 2);
if (yhlocation != null && yhlocation.Length >= 1)
{
yy = yhlocation[0];
costtime = time[0];
}
}
}
if (uiComboBox3.SelectedItem != null && uiComboBox3.Text.Trim() == "样品2")
{
bool[] value5 = await ReadModbusCoilAsync(111, 1);
bool[] value6 = await ReadModbusCoilAsync(121, 1);
bool[] value7 = await ReadModbusCoilAsync(131, 1);
bool[] value8 = await ReadModbusCoilAsync(141, 1);
ushort[] time2 = _modbusMaster?.ReadHoldingRegisters(1, 92, 2);
if (value5 != null && value5.Length > 0 && value5[0])
{
classify = "I4x";
ushort[] yhlocation = _modbusMaster?.ReadHoldingRegisters(1, 300, 4);
if (yhlocation != null && yhlocation.Length >= 3)
{
yh = yhlocation[0];
yy = yhlocation[2];
costtime = time2[0];
}
}
else if (value6 != null && value6.Length > 0 && value6[0])
{
classify = "I3x";
ushort[] yhlocation = _modbusMaster?.ReadHoldingRegisters(1, 308, 4);
if (yhlocation != null && yhlocation.Length >= 3)
{
yh = yhlocation[0];
yy = yhlocation[2];
costtime = time2[0];
}
}
else if (value7 != null && value7.Length > 0 && value7[0])
{
classify = "I2x";
ushort[] yhlocation = _modbusMaster?.ReadHoldingRegisters(1, 304, 4);
if (yhlocation != null && yhlocation.Length >= 3)
{
yh = yhlocation[0];
yy = yhlocation[2];
costtime = time2[0];
}
}
else if (value8 != null && value8.Length > 0 && value8[0])
{
classify = "I1x";
yh = 0;
ushort[] yhlocation = _modbusMaster?.ReadHoldingRegisters(1, 314, 2);
if (yhlocation != null && yhlocation.Length >= 1)
{
yy = yhlocation[0];
costtime = time2[0];
}
}
}
if (uiComboBox3.SelectedItem != null && uiComboBox3.Text.Trim() == "样品3")
{
bool[] value9 = await ReadModbusCoilAsync(112, 1);
bool[] value10 = await ReadModbusCoilAsync(122, 1);
bool[] value11 = await ReadModbusCoilAsync(132, 1);
bool[] value12 = await ReadModbusCoilAsync(142, 1);
ushort[] time3= _modbusMaster?.ReadHoldingRegisters(1, 96, 2);
if (value9 != null && value9.Length > 0 && value9[0])
{
classify = "I4x";
ushort[] yhlocation = _modbusMaster?.ReadHoldingRegisters(1, 300, 4);
if (yhlocation != null && yhlocation.Length >= 3)
{
yh = yhlocation[0];
yy = yhlocation[2];
costtime = time3[0];
}
}
else if (value10 != null && value10.Length > 0 && value10[0])
{
classify = "I3x";
ushort[] yhlocation = _modbusMaster?.ReadHoldingRegisters(1, 308, 4);
if (yhlocation != null && yhlocation.Length >= 3)
{
yh = yhlocation[0];
yy = yhlocation[2];
costtime = time3[0];
}
}
else if (value11 != null && value11.Length > 0 && value11[0])
{
classify = "I2x";
ushort[] yhlocation = _modbusMaster?.ReadHoldingRegisters(1, 304, 4);
if (yhlocation != null && yhlocation.Length >= 3)
{
yh = yhlocation[0];
yy = yhlocation[2];
costtime = time3[0];
}
}
else if (value12 != null && value12.Length > 0 && value12[0])
{
classify = "I1x";
yh = 0;
ushort[] yhlocation = _modbusMaster?.ReadHoldingRegisters(1, 314, 2);
if (yhlocation != null && yhlocation.Length >= 1)
{
yy = yhlocation[0];
costtime = time3[0];
}
}
}
if (uiComboBox3.SelectedItem != null && uiComboBox3.Text.Trim() == "样品4")
{
bool[] value13 = await ReadModbusCoilAsync(113, 1);
bool[] value14 = await ReadModbusCoilAsync(123, 1);
bool[] value15 = await ReadModbusCoilAsync(133, 1);
bool[] value16 = await ReadModbusCoilAsync(143, 1);
ushort[] time4 = _modbusMaster?.ReadHoldingRegisters(1, 96, 2);
if (value13 != null && value13.Length > 0 && value13[0])
{
classify = "I4x";
ushort[] yhlocation = _modbusMaster?.ReadHoldingRegisters(1, 300, 4);
if (yhlocation != null && yhlocation.Length >= 3)
{
yh = yhlocation[0];
yy = yhlocation[2];
costtime = time4[0];
}
}
else if (value14 != null && value14.Length > 0 && value14[0])
{
classify = "I3x";
ushort[] yhlocation = _modbusMaster?.ReadHoldingRegisters(1, 308, 4);
if (yhlocation != null && yhlocation.Length >= 3)
{
yh = yhlocation[0];
yy = yhlocation[2];
costtime = time4[0];
}
}
else if (value15 != null && value15.Length > 0 && value15[0])
{
classify = "I2x";
ushort[] yhlocation = _modbusMaster?.ReadHoldingRegisters(1, 304, 4);
if (yhlocation != null && yhlocation.Length >= 3)
{
yh = yhlocation[0];
yy = yhlocation[2];
costtime = time4[0];
}
}
else if (value16 != null && value16.Length > 0 && value16[0])
{
classify = "I1x";
yh = 0;
ushort[] yhlocation = _modbusMaster?.ReadHoldingRegisters(1, 314, 2);
if (yhlocation != null && yhlocation.Length >= 1)
{
yy = yhlocation[0];
costtime = time4[0];
}
}
}
if (uiComboBox3.SelectedItem != null && uiComboBox3.Text.Trim() == "样品5")
{
bool[] value17 = await ReadModbusCoilAsync(114, 1);
bool[] value18 = await ReadModbusCoilAsync(124, 1);
bool[] value19 = await ReadModbusCoilAsync(134, 1);
bool[] value20 = await ReadModbusCoilAsync(144, 1);
ushort[] time5 = _modbusMaster?.ReadHoldingRegisters(1, 98, 2);
if (value17 != null && value17.Length > 0 && value17[0])
{
classify = "I4x";
ushort[] yhlocation = _modbusMaster?.ReadHoldingRegisters(1, 300, 4);
if (yhlocation != null && yhlocation.Length >= 3)
{
yh = yhlocation[0];
yy = yhlocation[2];
costtime = time5[0];
}
}
else if (value18 != null && value18.Length > 0 && value18[0])
{
classify = "I3x";
ushort[] yhlocation = _modbusMaster?.ReadHoldingRegisters(1, 308, 4);
if (yhlocation != null && yhlocation.Length >= 3)
{
yh = yhlocation[0];
yy = yhlocation[2];
costtime = time5[0];
}
}
else if (value19 != null && value19.Length > 0 && value19[0])
{
classify = "I2x";
ushort[] yhlocation = _modbusMaster?.ReadHoldingRegisters(1, 304, 4);
if (yhlocation != null && yhlocation.Length >= 3)
{
yh = yhlocation[0];
yy = yhlocation[2];
costtime = time5[0];
}
}
else if (value20 != null && value20.Length > 0 && value20[0])
{
classify = "I1x";
yh = 0;
ushort[] yhlocation = _modbusMaster?.ReadHoldingRegisters(1, 314, 2);
if (yhlocation != null && yhlocation.Length >= 1)
{
yy = yhlocation[0];
costtime = time5[0];
}
}
}
try
{
string selectedO2Text = uiComboBox1.Text;
reportList.Add(new PrimaryIgnitionModel
{
costTime = 1,
costTime = costtime,
FireDate = DateTime.Now,
Iszixi = false,
O2 = 100,
result = "I1",
O2 = selectedO2Text,
result = classify,
sampleType = uiComboBox3.Text.Contains("1") ? 1
: uiComboBox3.Text.Contains("2") ? 2
: uiComboBox3.Text.Contains("3") ? 3
: uiComboBox3.Text.Contains("4") ? 4
: uiComboBox3.Text.Contains("5") ? 5 : 0,
yuhui = 1,
yuyan = 1
yuhui = yh,
yuyan = yy
});
await Task.Delay(100);
@@ -364,6 +662,8 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
private void PrimaryIgnitionForm_FormClosed(object sender, FormClosedEventArgs e)
{
foreach (Form form in Application.OpenForms)
{
if (form.Name == "MainForm" || form.Text.Contains("主界面"))
@@ -430,13 +730,33 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
private void PrimaryIgnitionForm_FormClosing(object sender, FormClosingEventArgs e)
{
if (_readtimer != null)
{
_readtimer.Stop();
_readtimer.Dispose();
ModbusResourceManager.Instance?.Dispose();
}
}
private void InitComboBox2Pattern()
{
// 清空原有选项(可选,避免重复添加)
//Combox_pattern.Items.Clear();
// 定义需要添加的选项数组
string[] options = {
"样品1",
"样品2",
"样品3",
"样品4",
"样品5"
};
uiComboBox2.Items.AddRange(options);
}
private void uiComboBox2_SelectedIndexChanged(object sender, EventArgs e)
{
string value = uiComboBox2.SelectedItem.ToString();
@@ -446,22 +766,70 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
case "样品1":
{
var data = reportList?.FirstOrDefault(x => x.sampleType == 1);
uiLabel21.Text = value;
uiLabel21.Text = data.FireDate.ToString();
//等等
uiLabel21.Text = data.O2.ToString();
uiLabel19.Text = data.result.ToString();
uiLabel31.Text = data.FireDate.ToString();
uiLabel27.Text = data.yuyan.ToString();
uiLabel29.Text = data.yuhui.ToString();
uiLabel18.Text = data.Iszixi.ToString();
uiLabel34.Text = data.costTime.ToString();
break;
}
case "样品2":
{
var data = reportList?.FirstOrDefault(x => x.sampleType == 2);
uiLabel21.Text = value;
uiLabel21.Text = data.FireDate.ToString();
//等等
uiLabel21.Text = data.O2.ToString();
uiLabel19.Text = data.result.ToString();
uiLabel31.Text = data.FireDate.ToString();
uiLabel27.Text = data.yuyan.ToString();
uiLabel29.Text = data.yuhui.ToString();
uiLabel18.Text = data.Iszixi.ToString();
uiLabel34.Text = data.costTime.ToString();
break;
}
case "样品3":
{
var data = reportList?.FirstOrDefault(x => x.sampleType == 3);
uiLabel21.Text = data.O2.ToString();
uiLabel19.Text = data.result.ToString();
uiLabel31.Text = data.FireDate.ToString();
uiLabel27.Text = data.yuyan.ToString();
uiLabel29.Text = data.yuhui.ToString();
uiLabel18.Text = data.Iszixi.ToString();
uiLabel34.Text = data.costTime.ToString();
break;
}
case "样品4":
{
var data = reportList?.FirstOrDefault(x => x.sampleType == 4);
uiLabel21.Text = data.O2.ToString();
uiLabel19.Text = data.result.ToString();
uiLabel31.Text = data.FireDate.ToString();
uiLabel27.Text = data.yuyan.ToString();
uiLabel29.Text = data.yuhui.ToString();
uiLabel18.Text = data.Iszixi.ToString();
uiLabel34.Text = data.costTime.ToString();
break;
}
case "样品5":
{
var data = reportList?.FirstOrDefault(x => x.sampleType == 5);
uiLabel21.Text = data.O2.ToString();
uiLabel19.Text = data.result.ToString();
uiLabel31.Text = data.FireDate.ToString();
uiLabel27.Text = data.yuyan.ToString();
uiLabel29.Text = data.yuhui.ToString();
uiLabel18.Text = data.Iszixi.ToString();
uiLabel34.Text = data.costTime.ToString();
break;
}
default:
break;
}
}
}
}