Files
FullAutoWaterCheck/全自动水压检测仪/StatusSettingsForm.Designer.cs

153 lines
7.1 KiB
C#
Raw Normal View History

2026-02-03 14:11:41 +08:00
namespace
{
partial class StatusSettingsForm
{
private System.ComponentModel.IContainer components = null;
// 控件声明
private Sunny.UI.UILight uiLight1_Status;
private Sunny.UI.UILight uiLight2_Status;
private Sunny.UI.UILight uiLight3_Status;
private Sunny.UI.UILight uiLight4_Status;
private Sunny.UI.UILight uiLight5_Status;
private Sunny.UI.UILight uiLight6_Status;
private Sunny.UI.UILight uiLight7_Status;
private Sunny.UI.UILight uiLight8_Status;
private Sunny.UI.UILight uiLight9_Status;
private Sunny.UI.UILight uiLight10_Status;
private Sunny.UI.UILight uiLight11_Status;
private Sunny.UI.UILight uiLight12_Status;
private Sunny.UI.UILabel uiLabel11_Status;
private Sunny.UI.UIButton uiButton_Close;
private Sunny.UI.UIPanel mainPanel;
private Sunny.UI.UIPanel tempModePanel;
private Sunny.UI.UIPanel valveStatusPanel;
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
this.mainPanel = new Sunny.UI.UIPanel();
this.tempModePanel = new Sunny.UI.UIPanel();
this.valveStatusPanel = new Sunny.UI.UIPanel();
this.uiLight1_Status = new Sunny.UI.UILight();
this.uiLight2_Status = new Sunny.UI.UILight();
this.uiLight3_Status = new Sunny.UI.UILight();
this.uiLight4_Status = new Sunny.UI.UILight();
this.uiLight5_Status = new Sunny.UI.UILight();
this.uiLight6_Status = new Sunny.UI.UILight();
this.uiLight7_Status = new Sunny.UI.UILight();
this.uiLight8_Status = new Sunny.UI.UILight();
this.uiLight9_Status = new Sunny.UI.UILight();
this.uiLight10_Status = new Sunny.UI.UILight();
this.uiLight11_Status = new Sunny.UI.UILight();
this.uiLight12_Status = new Sunny.UI.UILight();
this.uiLabel11_Status = new Sunny.UI.UILabel();
this.uiButton_Close = new Sunny.UI.UIButton();
this.SuspendLayout();
// mainPanel
this.mainPanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.mainPanel.Location = new System.Drawing.Point(0, 35);
this.mainPanel.Name = "mainPanel";
this.mainPanel.Size = new System.Drawing.Size(850, 515);
this.mainPanel.TabIndex = 0;
this.mainPanel.FillColor = System.Drawing.Color.White;
// tempModePanel - 温度模式区域
this.tempModePanel.Location = new System.Drawing.Point(20, 20);
this.tempModePanel.Size = new System.Drawing.Size(810, 120);
this.tempModePanel.FillColor = System.Drawing.Color.FromArgb(245, 245, 245);
this.tempModePanel.Radius = 8;
// valveStatusPanel - 阀门状态区域
this.valveStatusPanel.Location = new System.Drawing.Point(20, 160);
this.valveStatusPanel.Size = new System.Drawing.Size(810, 280);
this.valveStatusPanel.FillColor = System.Drawing.Color.FromArgb(245, 245, 245);
this.valveStatusPanel.Radius = 8;
// 温度模式指示灯和标签
this.uiLight1_Status.Location = new System.Drawing.Point(30, 50);
this.uiLight1_Status.Size = new System.Drawing.Size(30, 30);
this.uiLight1_Status.OnColor = System.Drawing.Color.Blue;
this.uiLight1_Status.OffColor = System.Drawing.Color.LightGray;
this.uiLight2_Status.Location = new System.Drawing.Point(30, 90);
this.uiLight2_Status.Size = new System.Drawing.Size(30, 30);
this.uiLight2_Status.OnColor = System.Drawing.Color.Red;
this.uiLight2_Status.OffColor = System.Drawing.Color.LightGray;
this.uiLabel11_Status.Location = new System.Drawing.Point(80, 50);
this.uiLabel11_Status.Size = new System.Drawing.Size(200, 30);
this.uiLabel11_Status.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold);
// 阀门状态指示灯 - 使用循环布局
int startX = 30, startY = 30, spacing = 150, row = 0, col = 0;
var valveLights = new[] {
(this.uiLight3_Status, "高压出阀"),
(this.uiLight4_Status, "高压进阀"),
(this.uiLight5_Status, "常温抽水阀"),
(this.uiLight6_Status, "常温水箱加水阀"),
(this.uiLight7_Status, "高温抽水阀"),
(this.uiLight8_Status, "空气抽气阀"),
(this.uiLight9_Status, "加热状态"),
(this.uiLight10_Status, "常温回水阀"),
(this.uiLight11_Status, "高温水箱加水阀"),
(this.uiLight12_Status, "高温回水阀")
};
foreach (var (light, label) in valveLights)
{
light.Location = new System.Drawing.Point(startX + col * spacing, startY + row * 50);
light.Size = new System.Drawing.Size(25, 25);
light.OnColor = System.Drawing.Color.Green;
light.OffColor = System.Drawing.Color.LightGray;
this.valveStatusPanel.Controls.Add(light);
var lbl = new Sunny.UI.UILabel();
lbl.Location = new System.Drawing.Point(startX + col * spacing + 35, startY + row * 50);
lbl.Size = new System.Drawing.Size(110, 25);
lbl.Text = label;
lbl.Font = new System.Drawing.Font("微软雅黑", 9F);
this.valveStatusPanel.Controls.Add(lbl);
col++;
if (col >= 5) { col = 0; row++; }
}
// 关闭按钮
this.uiButton_Close.Location = new System.Drawing.Point(350, 460);
this.uiButton_Close.Size = new System.Drawing.Size(150, 40);
this.uiButton_Close.Text = "关闭";
this.uiButton_Close.Font = new System.Drawing.Font("微软雅黑", 12F);
this.uiButton_Close.Click += new System.EventHandler(this.uiButton_Close_Click);
// 添加控件到面板
this.tempModePanel.Controls.AddRange(new System.Windows.Forms.Control[] {
this.uiLight1_Status, this.uiLight2_Status, this.uiLabel11_Status
});
this.mainPanel.Controls.AddRange(new System.Windows.Forms.Control[] {
this.tempModePanel, this.valveStatusPanel, this.uiButton_Close
});
this.Controls.Add(this.mainPanel);
// 窗体设置
this.ClientSize = new System.Drawing.Size(850, 550);
this.Name = "StatusSettingsForm";
this.Text = "状态监控设置";
this.ResumeLayout(false);
}
}
}