From c795500b11adc77007ca8647071aee81f3af2d79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=88=91=E5=8F=AB=E9=94=84=E5=A4=B4?= Date: Fri, 1 Dec 2023 12:37:39 +0800 Subject: [PATCH] Demo --- .../Test/TestAction.cs | 15 +++++++++++++++ Main/MCEdit/Data/MCProject/nodeForm/Form1.xml | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Test/TestAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Test/TestAction.cs index a1077ce..f43cec2 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Test/TestAction.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Test/TestAction.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Data; using System.Diagnostics; +using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; @@ -58,6 +59,20 @@ namespace Mesnac.Action.ChemicalWeighing.Test hslLed= allDb.FirstOrDefault(x => x.Name == "HslLedDisplay1") as HslLedDisplay; + hslLed.LeftRightOffect = 0; + + this.hslLed.BackColor = Color.FromArgb(46, 46, 46); + this.hslLed.DisplayBackColor = Color.FromArgb(62, 62, 62); + this.hslLed.DisplayNumber = 5; + this.hslLed.DisplayText = "12:00"; + this.hslLed.ForeColor = Color.Pink; + this.hslLed.LedNumberSize = 2; + this.hslLed.Location = new Point(555, 203); + this.hslLed.Margin = new Padding(3, 16, 3, 16); + this.hslLed.Name = "hslLedDisplay12"; + this.hslLed.Size = new Size(113, 33); + this.hslLed.TabIndex = 8; + //MCButton1 //OpenDoorService diff --git a/Main/MCEdit/Data/MCProject/nodeForm/Form1.xml b/Main/MCEdit/Data/MCProject/nodeForm/Form1.xml index 7e15403..277944f 100644 --- a/Main/MCEdit/Data/MCProject/nodeForm/Form1.xml +++ b/Main/MCEdit/Data/MCProject/nodeForm/Form1.xml @@ -2,7 +2,7 @@ - 448, 67 + 267, 58 HslLedDisplay1 325, 58