diff --git a/全自动水压检测仪/ChartManager.cs b/全自动水压检测仪/ChartManager.cs index 2b4ce83..b822de2 100644 --- a/全自动水压检测仪/ChartManager.cs +++ b/全自动水压检测仪/ChartManager.cs @@ -2,6 +2,7 @@ using LiveCharts; using LiveCharts.Wpf; using System; using System.Drawing; +using System.Threading.Tasks; using System.Windows.Forms; using System.Windows.Forms.Integration; @@ -24,99 +25,111 @@ namespace 全自动水压检测仪 /// public void InitializeChart(Control targetPanel) { - if (targetPanel == null) - throw new ArgumentNullException(nameof(targetPanel)); - - // 清除占位文字 - targetPanel.Text = null; - - // 初始化数据集合 - _pressureValues = new ChartValues(); - _temperatureValues = new ChartValues(); - _timeLabels = new ChartValues(); - - // 创建WPF图表控件 - _chart = new LiveCharts.Wpf.CartesianChart + targetPanel.Invoke(new Action(() => { - Background = System.Windows.Media.Brushes.White, - DisableAnimations = false, - Hoverable = true, - DataTooltip = null, - LegendLocation = LegendLocation.Top - }; + if (targetPanel == null) + throw new ArgumentNullException(nameof(targetPanel)); - // 配置X轴(时间轴) - _chart.AxisX.Add(new Axis - { - Title = "时间", - Labels = _timeLabels, - FontSize = 12, - Foreground = System.Windows.Media.Brushes.Black, - Separator = new LiveCharts.Wpf.Separator + // 清除占位文字 + targetPanel.Text = null; + + // 初始化数据集合 + _pressureValues = new ChartValues(); + _temperatureValues = new ChartValues(); + _timeLabels = new ChartValues(); + + + + + + // 创建WPF图表控件 + _chart = new LiveCharts.Wpf.CartesianChart { - Step = 5, - IsEnabled = true - } - }); + Background = System.Windows.Media.Brushes.White, + DisableAnimations = false, + Hoverable = true, + DataTooltip = null, + LegendLocation = LegendLocation.Top + }; - // 配置Y轴(压力) - _chart.AxisY.Add(new Axis - { - Title = "压力 (MPa)", - FontSize = 12, - Foreground = System.Windows.Media.Brushes.Blue, - LabelFormatter = value => value.ToString("F2"), - MinValue = 0 - }); - // 配置第二Y轴(压力设定值) - _chart.AxisY.Add(new Axis - { - Title = "压力设定值 (MPa)", - FontSize = 12, - Foreground = System.Windows.Media.Brushes.Red, - LabelFormatter = value => value.ToString("F2"), - Position = AxisPosition.RightTop, - MinValue = 0 - }); + // 配置X轴(时间轴) + _chart.AxisX.Add(new Axis + { + Title = "时间", + Labels = _timeLabels, + FontSize = 12, + Foreground = System.Windows.Media.Brushes.Black, + Separator = new LiveCharts.Wpf.Separator + { + Step = 5, + IsEnabled = true + } + }); - // 添加压力曲线 - _chart.Series.Add(new LineSeries - { - Title = "实时压力", - Values = _pressureValues, - Stroke = System.Windows.Media.Brushes.Blue, - Fill = System.Windows.Media.Brushes.Transparent, - PointGeometry = DefaultGeometries.Circle, - PointGeometrySize = 5, - StrokeThickness = 2, - LineSmoothness = 0.3, - ScalesYAt = 0 - }); + // 配置Y轴(压力) + _chart.AxisY.Add(new Axis + { + Title = "压力 (MPa)", + FontSize = 12, + Foreground = System.Windows.Media.Brushes.Blue, + LabelFormatter = value => value.ToString("F2"), + MinValue = 0 + }); - // 添加压力设定值曲线 - _chart.Series.Add(new LineSeries - { - Title = "压力设定值", - Values = _temperatureValues, - Stroke = System.Windows.Media.Brushes.Red, - Fill = System.Windows.Media.Brushes.Transparent, - PointGeometry = DefaultGeometries.Diamond, - PointGeometrySize = 5, - StrokeThickness = 2, - LineSmoothness = 0.3, - ScalesYAt = 1 - }); + // 配置第二Y轴(压力设定值) + _chart.AxisY.Add(new Axis + { + Title = "压力设定值 (MPa)", + FontSize = 12, + Foreground = System.Windows.Media.Brushes.Red, + LabelFormatter = value => value.ToString("F2"), + Position = AxisPosition.RightTop, + MinValue = 0 + }); - // 创建ElementHost以承载WPF控件 - _chartHost = new ElementHost - { - Dock = DockStyle.Fill, - Child = _chart - }; + // 添加压力曲线 + _chart.Series.Add(new LineSeries + { + Title = "实时压力", + Values = _pressureValues, + Stroke = System.Windows.Media.Brushes.Blue, + Fill = System.Windows.Media.Brushes.Transparent, + PointGeometry = DefaultGeometries.Circle, + PointGeometrySize = 5, + StrokeThickness = 2, + LineSmoothness = 0.3, + ScalesYAt = 0 + }); - // 添加到目标面板 - targetPanel.Controls.Add(_chartHost); + // 添加压力设定值曲线 + _chart.Series.Add(new LineSeries + { + Title = "压力设定值", + Values = _temperatureValues, + Stroke = System.Windows.Media.Brushes.Red, + Fill = System.Windows.Media.Brushes.Transparent, + PointGeometry = DefaultGeometries.Diamond, + PointGeometrySize = 5, + StrokeThickness = 2, + LineSmoothness = 0.3, + ScalesYAt = 1 + }); + + // 创建ElementHost以承载WPF控件 + _chartHost = new ElementHost + { + Dock = DockStyle.Fill, + Child = _chart + }; + + + + + + // 添加到目标面板 + targetPanel.Controls.Add(_chartHost); + })); } /// diff --git a/全自动水压检测仪/NormalTemperatureMode.Designer.cs b/全自动水压检测仪/NormalTemperatureMode.Designer.cs index fb468e2..3e1d4a4 100644 --- a/全自动水压检测仪/NormalTemperatureMode.Designer.cs +++ b/全自动水压检测仪/NormalTemperatureMode.Designer.cs @@ -31,24 +31,19 @@ namespace 全自动水压检测仪 private void InitializeComponent() { this.uiTableLayoutPanel1 = new Sunny.UI.UITableLayoutPanel(); + this.uiPanel1 = new Sunny.UI.UIPanel(); + this.uiButton_Settings = new Sunny.UI.UIButton(); + this.uiButton14 = new Sunny.UI.UIButton(); + this.uiPanel4 = new Sunny.UI.UIPanel(); + this.uiLabel5 = new Sunny.UI.UILabel(); + this.uiPanel3 = new Sunny.UI.UIPanel(); + this.uiLabel3 = new Sunny.UI.UILabel(); + this.uiLabel2 = new Sunny.UI.UILabel(); + this.uiTabControl_Main = new Sunny.UI.UITabControl(); + this.tabPage_Chart = new System.Windows.Forms.TabPage(); + this.uiPanel_ChartPlaceholder = new Sunny.UI.UIPanel(); + this.tabPage_Data = new System.Windows.Forms.TabPage(); this.uiTableLayoutPanel2 = new Sunny.UI.UITableLayoutPanel(); - this.panel1 = new System.Windows.Forms.Panel(); - this.uiButton9 = new Sunny.UI.UIButton(); - this.uiSwitch1 = new Sunny.UI.UISwitch(); - this.uiPanel7 = new Sunny.UI.UIPanel(); - this.uiTableLayoutPanel4 = new Sunny.UI.UITableLayoutPanel(); - this.uiPanel34 = new Sunny.UI.UIPanel(); - this.uiButton6 = new Sunny.UI.UIButton(); - this.uiPanel16 = new Sunny.UI.UIPanel(); - this.uiButton3 = new Sunny.UI.UIButton(); - this.uiPanel15 = new Sunny.UI.UIPanel(); - this.uiButton2 = new Sunny.UI.UIButton(); - this.uiPanel8 = new Sunny.UI.UIPanel(); - this.uiPanel5 = new Sunny.UI.UIPanel(); - this.uiTableLayoutPanel3 = new Sunny.UI.UITableLayoutPanel(); - this.uiPanel6 = new Sunny.UI.UIPanel(); - this.uiButton7 = new Sunny.UI.UIButton(); - this.uiButton1 = new Sunny.UI.UIButton(); this.uiTableLayoutPanel5 = new Sunny.UI.UITableLayoutPanel(); this.uiPanel18 = new Sunny.UI.UIPanel(); this.uiTableLayoutPanel10 = new Sunny.UI.UITableLayoutPanel(); @@ -122,18 +117,6 @@ namespace 全自动水压检测仪 this.uiLabel4 = new Sunny.UI.UILabel(); this.uiButton13 = new Sunny.UI.UIButton(); this.uiTextBox1 = new Sunny.UI.UITextBox(); - this.uiPanel1 = new Sunny.UI.UIPanel(); - this.uiButton_Settings = new Sunny.UI.UIButton(); - this.uiButton14 = new Sunny.UI.UIButton(); - this.uiPanel4 = new Sunny.UI.UIPanel(); - this.uiLabel5 = new Sunny.UI.UILabel(); - this.uiPanel3 = new Sunny.UI.UIPanel(); - this.uiLabel3 = new Sunny.UI.UILabel(); - this.uiLabel2 = new Sunny.UI.UILabel(); - this.uiPanel_ChartPlaceholder = new Sunny.UI.UIPanel(); - this.uiTabControl_Main = new Sunny.UI.UITabControl(); - this.tabPage_Chart = new System.Windows.Forms.TabPage(); - this.tabPage_Data = new System.Windows.Forms.TabPage(); this.uiPanel9 = new Sunny.UI.UIPanel(); this.uiTableLayoutPanel6 = new Sunny.UI.UITableLayoutPanel(); this.uiPanel11 = new Sunny.UI.UIPanel(); @@ -165,20 +148,33 @@ namespace 全自动水压检测仪 this.uiPanel2 = new Sunny.UI.UIPanel(); this.uiLabel1 = new Sunny.UI.UILabel(); this.uiLight1 = new Sunny.UI.UILight(); + this.uiPanel5 = new Sunny.UI.UIPanel(); + this.uiTableLayoutPanel3 = new Sunny.UI.UITableLayoutPanel(); + this.uiButton1 = new Sunny.UI.UIButton(); + this.uiPanel6 = new Sunny.UI.UIPanel(); + this.uiButton7 = new Sunny.UI.UIButton(); + this.uiPanel7 = new Sunny.UI.UIPanel(); + this.uiTableLayoutPanel4 = new Sunny.UI.UITableLayoutPanel(); + this.uiPanel8 = new Sunny.UI.UIPanel(); + this.uiPanel15 = new Sunny.UI.UIPanel(); + this.uiButton2 = new Sunny.UI.UIButton(); + this.uiPanel16 = new Sunny.UI.UIPanel(); + this.uiButton3 = new Sunny.UI.UIButton(); + this.uiPanel34 = new Sunny.UI.UIPanel(); + this.uiButton6 = new Sunny.UI.UIButton(); + this.uiSwitch1 = new Sunny.UI.UISwitch(); + this.uiButton9 = new Sunny.UI.UIButton(); + this.panel1 = new System.Windows.Forms.Panel(); + this.uiLabel11 = new Sunny.UI.UILabel(); + this.uiTextBox11 = new Sunny.UI.UITextBox(); this.uiTableLayoutPanel1.SuspendLayout(); + this.uiPanel1.SuspendLayout(); + this.uiPanel4.SuspendLayout(); + this.uiPanel3.SuspendLayout(); this.uiTabControl_Main.SuspendLayout(); this.tabPage_Chart.SuspendLayout(); this.tabPage_Data.SuspendLayout(); this.uiTableLayoutPanel2.SuspendLayout(); - this.panel1.SuspendLayout(); - this.uiPanel7.SuspendLayout(); - this.uiTableLayoutPanel4.SuspendLayout(); - this.uiPanel34.SuspendLayout(); - this.uiPanel16.SuspendLayout(); - this.uiPanel15.SuspendLayout(); - this.uiPanel5.SuspendLayout(); - this.uiTableLayoutPanel3.SuspendLayout(); - this.uiPanel6.SuspendLayout(); this.uiTableLayoutPanel5.SuspendLayout(); this.uiPanel18.SuspendLayout(); this.uiTableLayoutPanel10.SuspendLayout(); @@ -200,9 +196,6 @@ namespace 全自动水压检测仪 this.uiTableLayoutPanel8.SuspendLayout(); this.uiTableLayoutPanel9.SuspendLayout(); this.uiPanel14.SuspendLayout(); - this.uiPanel1.SuspendLayout(); - this.uiPanel4.SuspendLayout(); - this.uiPanel3.SuspendLayout(); this.uiPanel9.SuspendLayout(); this.uiTableLayoutPanel6.SuspendLayout(); this.uiPanel11.SuspendLayout(); @@ -219,6 +212,15 @@ namespace 全自动水压检测仪 this.uiPanel42.SuspendLayout(); this.uiPanel17.SuspendLayout(); this.uiPanel2.SuspendLayout(); + this.uiPanel5.SuspendLayout(); + this.uiTableLayoutPanel3.SuspendLayout(); + this.uiPanel6.SuspendLayout(); + this.uiPanel7.SuspendLayout(); + this.uiTableLayoutPanel4.SuspendLayout(); + this.uiPanel15.SuspendLayout(); + this.uiPanel16.SuspendLayout(); + this.uiPanel34.SuspendLayout(); + this.panel1.SuspendLayout(); this.SuspendLayout(); // // uiTableLayoutPanel1 @@ -239,6 +241,135 @@ namespace 全自动水压检测仪 this.uiTableLayoutPanel1.TabIndex = 0; this.uiTableLayoutPanel1.TagString = null; // + // uiPanel1 + // + this.uiPanel1.BackColor = System.Drawing.Color.White; + this.uiPanel1.Controls.Add(this.uiButton_Settings); + this.uiPanel1.Controls.Add(this.uiButton14); + this.uiPanel1.Controls.Add(this.uiPanel4); + this.uiPanel1.Controls.Add(this.uiPanel3); + this.uiPanel1.FillColor = System.Drawing.Color.White; + this.uiPanel1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.uiPanel1.Location = new System.Drawing.Point(12, 13); + this.uiPanel1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.uiPanel1.MinimumSize = new System.Drawing.Size(1, 1); + this.uiPanel1.Name = "uiPanel1"; + this.uiPanel1.Size = new System.Drawing.Size(967, 54); + this.uiPanel1.TabIndex = 0; + this.uiPanel1.Text = null; + this.uiPanel1.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; + // + // uiButton_Settings + // + this.uiButton_Settings.Cursor = System.Windows.Forms.Cursors.Hand; + this.uiButton_Settings.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(180)))), ((int)(((byte)(255))))); + this.uiButton_Settings.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(140)))), ((int)(((byte)(235))))); + this.uiButton_Settings.Font = new System.Drawing.Font("微软雅黑", 11F, System.Drawing.FontStyle.Bold); + this.uiButton_Settings.Location = new System.Drawing.Point(15, 8); + this.uiButton_Settings.MinimumSize = new System.Drawing.Size(1, 1); + this.uiButton_Settings.Name = "uiButton_Settings"; + this.uiButton_Settings.Radius = 20; + this.uiButton_Settings.Size = new System.Drawing.Size(100, 38); + this.uiButton_Settings.TabIndex = 8; + this.uiButton_Settings.Text = "⚙ 设置"; + this.uiButton_Settings.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.uiButton_Settings.Click += new System.EventHandler(this.uiButton_Settings_Click); + // + // uiButton14 + // + this.uiButton14.Cursor = System.Windows.Forms.Cursors.Hand; + this.uiButton14.FillColor = System.Drawing.Color.White; + this.uiButton14.FillColor2 = System.Drawing.Color.White; + this.uiButton14.FillDisableColor = System.Drawing.Color.White; + this.uiButton14.FillHoverColor = System.Drawing.Color.White; + this.uiButton14.FillPressColor = System.Drawing.Color.White; + this.uiButton14.FillSelectedColor = System.Drawing.Color.White; + this.uiButton14.Font = new System.Drawing.Font("微软雅黑", 10F); + this.uiButton14.Location = new System.Drawing.Point(438, 11); + this.uiButton14.MinimumSize = new System.Drawing.Size(1, 1); + this.uiButton14.Name = "uiButton14"; + this.uiButton14.RectColor = System.Drawing.Color.White; + this.uiButton14.RectDisableColor = System.Drawing.Color.White; + this.uiButton14.RectHoverColor = System.Drawing.Color.White; + this.uiButton14.RectPressColor = System.Drawing.Color.White; + this.uiButton14.RectSelectedColor = System.Drawing.Color.White; + this.uiButton14.Size = new System.Drawing.Size(41, 38); + this.uiButton14.TabIndex = 6; + this.uiButton14.Text = "系数页"; + this.uiButton14.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.uiButton14.MouseDown += new System.Windows.Forms.MouseEventHandler(this.uiButton14_MouseDown); + this.uiButton14.MouseUp += new System.Windows.Forms.MouseEventHandler(this.uiButton14_MouseUp); + // + // uiPanel4 + // + this.uiPanel4.BackColor = System.Drawing.Color.White; + this.uiPanel4.Controls.Add(this.uiLabel5); + this.uiPanel4.FillColor = System.Drawing.Color.White; + this.uiPanel4.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.uiPanel4.Location = new System.Drawing.Point(747, 5); + this.uiPanel4.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.uiPanel4.MinimumSize = new System.Drawing.Size(1, 1); + this.uiPanel4.Name = "uiPanel4"; + this.uiPanel4.Radius = 20; + this.uiPanel4.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220))))); + this.uiPanel4.Size = new System.Drawing.Size(210, 45); + this.uiPanel4.TabIndex = 4; + this.uiPanel4.Text = null; + this.uiPanel4.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; + // + // uiLabel5 + // + this.uiLabel5.BackColor = System.Drawing.Color.White; + this.uiLabel5.Font = new System.Drawing.Font("微软雅黑", 11F); + this.uiLabel5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); + this.uiLabel5.Location = new System.Drawing.Point(3, 11); + this.uiLabel5.Name = "uiLabel5"; + this.uiLabel5.Size = new System.Drawing.Size(203, 23); + this.uiLabel5.TabIndex = 0; + this.uiLabel5.Text = "时间日期"; + this.uiLabel5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // uiPanel3 + // + this.uiPanel3.BackColor = System.Drawing.Color.White; + this.uiPanel3.Controls.Add(this.uiLabel3); + this.uiPanel3.Controls.Add(this.uiLabel2); + this.uiPanel3.FillColor = System.Drawing.Color.White; + this.uiPanel3.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.uiPanel3.Location = new System.Drawing.Point(486, 5); + this.uiPanel3.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.uiPanel3.MinimumSize = new System.Drawing.Size(1, 1); + this.uiPanel3.Name = "uiPanel3"; + this.uiPanel3.Radius = 20; + this.uiPanel3.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220))))); + this.uiPanel3.Size = new System.Drawing.Size(244, 45); + this.uiPanel3.TabIndex = 3; + this.uiPanel3.Text = null; + this.uiPanel3.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; + // + // uiLabel3 + // + this.uiLabel3.BackColor = System.Drawing.Color.White; + this.uiLabel3.Font = new System.Drawing.Font("微软雅黑", 11F, System.Drawing.FontStyle.Bold); + this.uiLabel3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); + this.uiLabel3.Location = new System.Drawing.Point(96, 7); + this.uiLabel3.Name = "uiLabel3"; + this.uiLabel3.Size = new System.Drawing.Size(108, 30); + this.uiLabel3.TabIndex = 1; + this.uiLabel3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // uiLabel2 + // + this.uiLabel2.BackColor = System.Drawing.Color.White; + this.uiLabel2.Font = new System.Drawing.Font("微软雅黑", 11F); + this.uiLabel2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); + this.uiLabel2.Location = new System.Drawing.Point(11, 11); + this.uiLabel2.Name = "uiLabel2"; + this.uiLabel2.Size = new System.Drawing.Size(111, 23); + this.uiLabel2.TabIndex = 0; + this.uiLabel2.Text = "系统状态:"; + this.uiLabel2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // // uiTabControl_Main // this.uiTabControl_Main.Controls.Add(this.tabPage_Chart); @@ -248,40 +379,58 @@ namespace 全自动水压检测仪 this.uiTabControl_Main.FillColor = System.Drawing.Color.White; this.uiTabControl_Main.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold); this.uiTabControl_Main.ItemSize = new System.Drawing.Size(150, 45); - this.uiTabControl_Main.Location = new System.Drawing.Point(12, 78); + this.uiTabControl_Main.Location = new System.Drawing.Point(11, 76); this.uiTabControl_Main.MainPage = ""; this.uiTabControl_Main.MenuStyle = Sunny.UI.UIMenuStyle.Custom; this.uiTabControl_Main.Name = "uiTabControl_Main"; this.uiTabControl_Main.RightToLeft = System.Windows.Forms.RightToLeft.No; this.uiTabControl_Main.SelectedIndex = 0; - this.uiTabControl_Main.Size = new System.Drawing.Size(974, 618); + this.uiTabControl_Main.Size = new System.Drawing.Size(976, 617); this.uiTabControl_Main.SizeMode = System.Windows.Forms.TabSizeMode.Fixed; this.uiTabControl_Main.TabBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(250)))), ((int)(((byte)(250))))); this.uiTabControl_Main.TabIndex = 3; this.uiTabControl_Main.TabSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); this.uiTabControl_Main.TabSelectedForeColor = System.Drawing.Color.White; - this.uiTabControl_Main.TabSelectedHighColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); - this.uiTabControl_Main.TabUnSelectedForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(120)))), ((int)(((byte)(120)))), ((int)(((byte)(120))))); - this.uiTabControl_Main.TextAlignment = System.Windows.Forms.HorizontalAlignment.Center; + this.uiTabControl_Main.TabUnSelectedColor = System.Drawing.SystemColors.ActiveCaption; + this.uiTabControl_Main.TabUnSelectedForeColor = System.Drawing.Color.White; this.uiTabControl_Main.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); // // tabPage_Chart // - this.tabPage_Chart.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255))))); + this.tabPage_Chart.BackColor = System.Drawing.Color.White; this.tabPage_Chart.Controls.Add(this.uiPanel_ChartPlaceholder); - this.tabPage_Chart.Location = new System.Drawing.Point(0, 40); + this.tabPage_Chart.Location = new System.Drawing.Point(0, 45); this.tabPage_Chart.Name = "tabPage_Chart"; - this.tabPage_Chart.Size = new System.Drawing.Size(974, 578); + this.tabPage_Chart.Size = new System.Drawing.Size(976, 572); this.tabPage_Chart.TabIndex = 0; this.tabPage_Chart.Text = "实时曲线"; // + // uiPanel_ChartPlaceholder + // + this.uiPanel_ChartPlaceholder.BackColor = System.Drawing.Color.White; + this.uiPanel_ChartPlaceholder.Dock = System.Windows.Forms.DockStyle.Fill; + this.uiPanel_ChartPlaceholder.FillColor = System.Drawing.Color.White; + this.uiPanel_ChartPlaceholder.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Bold); + this.uiPanel_ChartPlaceholder.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(150)))), ((int)(((byte)(150)))), ((int)(((byte)(150))))); + this.uiPanel_ChartPlaceholder.Location = new System.Drawing.Point(0, 0); + this.uiPanel_ChartPlaceholder.Margin = new System.Windows.Forms.Padding(0); + this.uiPanel_ChartPlaceholder.MinimumSize = new System.Drawing.Size(1, 1); + this.uiPanel_ChartPlaceholder.Name = "uiPanel_ChartPlaceholder"; + this.uiPanel_ChartPlaceholder.Padding = new System.Windows.Forms.Padding(10); + this.uiPanel_ChartPlaceholder.Radius = 8; + this.uiPanel_ChartPlaceholder.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220))))); + this.uiPanel_ChartPlaceholder.Size = new System.Drawing.Size(976, 572); + this.uiPanel_ChartPlaceholder.TabIndex = 2; + this.uiPanel_ChartPlaceholder.Text = "实时曲线图区域(预留)"; + this.uiPanel_ChartPlaceholder.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; + // // tabPage_Data // - this.tabPage_Data.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255))))); + this.tabPage_Data.BackColor = System.Drawing.Color.White; this.tabPage_Data.Controls.Add(this.uiTableLayoutPanel2); - this.tabPage_Data.Location = new System.Drawing.Point(0, 40); + this.tabPage_Data.Location = new System.Drawing.Point(0, 45); this.tabPage_Data.Name = "tabPage_Data"; - this.tabPage_Data.Size = new System.Drawing.Size(974, 578); + this.tabPage_Data.Size = new System.Drawing.Size(976, 572); this.tabPage_Data.TabIndex = 1; this.tabPage_Data.Text = "基本数据"; // @@ -298,286 +447,10 @@ namespace 全自动水压检测仪 this.uiTableLayoutPanel2.Padding = new System.Windows.Forms.Padding(5); this.uiTableLayoutPanel2.RowCount = 1; this.uiTableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.uiTableLayoutPanel2.Size = new System.Drawing.Size(974, 578); + this.uiTableLayoutPanel2.Size = new System.Drawing.Size(976, 572); this.uiTableLayoutPanel2.TabIndex = 1; this.uiTableLayoutPanel2.TagString = null; // - // panel1 - // - this.panel1.Controls.Add(this.uiButton9); - this.panel1.Controls.Add(this.uiSwitch1); - this.panel1.Controls.Add(this.uiPanel7); - this.panel1.Controls.Add(this.uiPanel5); - this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel1.Location = new System.Drawing.Point(778, 8); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(188, 562); - this.panel1.TabIndex = 0; - // - // uiButton9 - // - this.uiButton9.Cursor = System.Windows.Forms.Cursors.Hand; - this.uiButton9.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(130)))), ((int)(((byte)(240))))); - this.uiButton9.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(150)))), ((int)(((byte)(255))))); - this.uiButton9.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(120)))), ((int)(((byte)(220))))); - this.uiButton9.Font = new System.Drawing.Font("微软雅黑", 14F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.uiButton9.Location = new System.Drawing.Point(12, 500); - this.uiButton9.MinimumSize = new System.Drawing.Size(1, 1); - this.uiButton9.Name = "uiButton9"; - this.uiButton9.Size = new System.Drawing.Size(175, 45); - this.uiButton9.TabIndex = 4; - this.uiButton9.Text = "退出"; - this.uiButton9.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.uiButton9.Click += new System.EventHandler(this.uiButton9_Click); - // - // uiSwitch1 - // - this.uiSwitch1.ActiveColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(80)))), ((int)(((byte)(80))))); - this.uiSwitch1.ActiveText = "高温模式"; - this.uiSwitch1.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Bold); - this.uiSwitch1.InActiveColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); - this.uiSwitch1.InActiveText = "常温模式"; - this.uiSwitch1.Location = new System.Drawing.Point(7, 435); - this.uiSwitch1.MinimumSize = new System.Drawing.Size(1, 1); - this.uiSwitch1.Name = "uiSwitch1"; - this.uiSwitch1.Radius = 25; - this.uiSwitch1.Size = new System.Drawing.Size(178, 50); - this.uiSwitch1.TabIndex = 2; - this.uiSwitch1.Text = "uiSwitch1"; - this.uiSwitch1.Click += new System.EventHandler(this.uiSwitch1_Click); - // - // uiPanel7 - // - this.uiPanel7.Controls.Add(this.uiTableLayoutPanel4); - this.uiPanel7.FillColor = System.Drawing.Color.White; - this.uiPanel7.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.uiPanel7.Location = new System.Drawing.Point(7, 230); - this.uiPanel7.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.uiPanel7.MinimumSize = new System.Drawing.Size(1, 1); - this.uiPanel7.Name = "uiPanel7"; - this.uiPanel7.Radius = 8; - this.uiPanel7.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220))))); - this.uiPanel7.Size = new System.Drawing.Size(178, 185); - this.uiPanel7.TabIndex = 1; - this.uiPanel7.Text = null; - this.uiPanel7.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; - // - // uiTableLayoutPanel4 - // - this.uiTableLayoutPanel4.BackColor = System.Drawing.Color.White; - this.uiTableLayoutPanel4.ColumnCount = 1; - this.uiTableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.uiTableLayoutPanel4.Controls.Add(this.uiPanel34, 0, 3); - this.uiTableLayoutPanel4.Controls.Add(this.uiPanel16, 0, 2); - this.uiTableLayoutPanel4.Controls.Add(this.uiPanel15, 0, 1); - this.uiTableLayoutPanel4.Controls.Add(this.uiPanel8, 0, 0); - this.uiTableLayoutPanel4.Location = new System.Drawing.Point(3, 3); - this.uiTableLayoutPanel4.Name = "uiTableLayoutPanel4"; - this.uiTableLayoutPanel4.RowCount = 4; - this.uiTableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 18F)); - this.uiTableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 28F)); - this.uiTableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 27F)); - this.uiTableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 27F)); - this.uiTableLayoutPanel4.Size = new System.Drawing.Size(172, 178); - this.uiTableLayoutPanel4.TabIndex = 0; - this.uiTableLayoutPanel4.TagString = null; - // - // uiPanel34 - // - this.uiPanel34.Controls.Add(this.uiButton6); - this.uiPanel34.Dock = System.Windows.Forms.DockStyle.Fill; - this.uiPanel34.FillColor = System.Drawing.Color.White; - this.uiPanel34.Font = new System.Drawing.Font("宋体", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.uiPanel34.Location = new System.Drawing.Point(4, 131); - this.uiPanel34.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); - this.uiPanel34.MinimumSize = new System.Drawing.Size(1, 1); - this.uiPanel34.Name = "uiPanel34"; - this.uiPanel34.Padding = new System.Windows.Forms.Padding(5); - this.uiPanel34.RectColor = System.Drawing.Color.White; - this.uiPanel34.Size = new System.Drawing.Size(164, 44); - this.uiPanel34.TabIndex = 5; - this.uiPanel34.Text = null; - this.uiPanel34.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; - // - // uiButton6 - // - this.uiButton6.Cursor = System.Windows.Forms.Cursors.Hand; - this.uiButton6.Dock = System.Windows.Forms.DockStyle.Fill; - this.uiButton6.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(180)))), ((int)(((byte)(0))))); - this.uiButton6.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(200)))), ((int)(((byte)(0))))); - this.uiButton6.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(160)))), ((int)(((byte)(0))))); - this.uiButton6.Font = new System.Drawing.Font("微软雅黑", 11F, System.Drawing.FontStyle.Bold); - this.uiButton6.Location = new System.Drawing.Point(5, 5); - this.uiButton6.MinimumSize = new System.Drawing.Size(1, 34); - this.uiButton6.Name = "uiButton6"; - this.uiButton6.Size = new System.Drawing.Size(154, 34); - this.uiButton6.TabIndex = 1; - this.uiButton6.Text = "清除报警"; - this.uiButton6.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.uiButton6.Click += new System.EventHandler(this.uiButton6_Click); - // - // uiPanel16 - // - this.uiPanel16.Controls.Add(this.uiButton3); - this.uiPanel16.Dock = System.Windows.Forms.DockStyle.Fill; - this.uiPanel16.FillColor = System.Drawing.Color.White; - this.uiPanel16.Font = new System.Drawing.Font("宋体", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.uiPanel16.Location = new System.Drawing.Point(4, 84); - this.uiPanel16.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); - this.uiPanel16.MinimumSize = new System.Drawing.Size(1, 1); - this.uiPanel16.Name = "uiPanel16"; - this.uiPanel16.Padding = new System.Windows.Forms.Padding(5); - this.uiPanel16.RectColor = System.Drawing.Color.White; - this.uiPanel16.Size = new System.Drawing.Size(164, 41); - this.uiPanel16.TabIndex = 4; - this.uiPanel16.Text = null; - this.uiPanel16.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; - // - // uiButton3 - // - this.uiButton3.Cursor = System.Windows.Forms.Cursors.Hand; - this.uiButton3.Dock = System.Windows.Forms.DockStyle.Fill; - this.uiButton3.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.uiButton3.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.uiButton3.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.uiButton3.Font = new System.Drawing.Font("微软雅黑", 11F, System.Drawing.FontStyle.Bold); - this.uiButton3.Location = new System.Drawing.Point(5, 5); - this.uiButton3.MinimumSize = new System.Drawing.Size(1, 31); - this.uiButton3.Name = "uiButton3"; - this.uiButton3.Size = new System.Drawing.Size(154, 31); - this.uiButton3.TabIndex = 2; - this.uiButton3.Text = "停止测试"; - this.uiButton3.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.uiButton3.Click += new System.EventHandler(this.uiButton3_Click); - // - // uiPanel15 - // - this.uiPanel15.Controls.Add(this.uiButton2); - this.uiPanel15.Dock = System.Windows.Forms.DockStyle.Fill; - this.uiPanel15.FillColor = System.Drawing.Color.White; - this.uiPanel15.Font = new System.Drawing.Font("宋体", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.uiPanel15.Location = new System.Drawing.Point(4, 35); - this.uiPanel15.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); - this.uiPanel15.MinimumSize = new System.Drawing.Size(1, 1); - this.uiPanel15.Name = "uiPanel15"; - this.uiPanel15.Padding = new System.Windows.Forms.Padding(5); - this.uiPanel15.RectColor = System.Drawing.Color.White; - this.uiPanel15.Size = new System.Drawing.Size(164, 43); - this.uiPanel15.TabIndex = 3; - this.uiPanel15.Text = null; - this.uiPanel15.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; - // - // uiButton2 - // - this.uiButton2.Cursor = System.Windows.Forms.Cursors.Hand; - this.uiButton2.Dock = System.Windows.Forms.DockStyle.Fill; - this.uiButton2.Font = new System.Drawing.Font("微软雅黑", 11F, System.Drawing.FontStyle.Bold); - this.uiButton2.Location = new System.Drawing.Point(5, 5); - this.uiButton2.MinimumSize = new System.Drawing.Size(1, 33); - this.uiButton2.Name = "uiButton2"; - this.uiButton2.Size = new System.Drawing.Size(154, 33); - this.uiButton2.TabIndex = 1; - this.uiButton2.Text = "启动测试"; - this.uiButton2.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.uiButton2.Click += new System.EventHandler(this.uiButton2_Click); - // - // uiPanel8 - // - this.uiPanel8.Dock = System.Windows.Forms.DockStyle.Fill; - this.uiPanel8.FillColor = System.Drawing.Color.White; - this.uiPanel8.Font = new System.Drawing.Font("宋体", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.uiPanel8.Location = new System.Drawing.Point(4, 5); - this.uiPanel8.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.uiPanel8.MinimumSize = new System.Drawing.Size(1, 1); - this.uiPanel8.Name = "uiPanel8"; - this.uiPanel8.RectColor = System.Drawing.Color.White; - this.uiPanel8.Size = new System.Drawing.Size(164, 18); - this.uiPanel8.TabIndex = 0; - this.uiPanel8.Text = "测试控制"; - this.uiPanel8.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; - // - // uiPanel5 - // - this.uiPanel5.Controls.Add(this.uiTableLayoutPanel3); - this.uiPanel5.FillColor = System.Drawing.Color.White; - this.uiPanel5.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.uiPanel5.Location = new System.Drawing.Point(7, 115); - this.uiPanel5.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.uiPanel5.MinimumSize = new System.Drawing.Size(1, 1); - this.uiPanel5.Name = "uiPanel5"; - this.uiPanel5.Radius = 8; - this.uiPanel5.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220))))); - this.uiPanel5.Size = new System.Drawing.Size(178, 100); - this.uiPanel5.TabIndex = 0; - this.uiPanel5.Text = null; - this.uiPanel5.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; - // - // uiTableLayoutPanel3 - // - this.uiTableLayoutPanel3.BackColor = System.Drawing.Color.White; - this.uiTableLayoutPanel3.ColumnCount = 1; - this.uiTableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.uiTableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F)); - this.uiTableLayoutPanel3.Controls.Add(this.uiPanel6, 0, 0); - this.uiTableLayoutPanel3.Controls.Add(this.uiButton1, 0, 1); - this.uiTableLayoutPanel3.Location = new System.Drawing.Point(3, 3); - this.uiTableLayoutPanel3.Name = "uiTableLayoutPanel3"; - this.uiTableLayoutPanel3.Padding = new System.Windows.Forms.Padding(5); - this.uiTableLayoutPanel3.RowCount = 2; - this.uiTableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.uiTableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.uiTableLayoutPanel3.Size = new System.Drawing.Size(172, 92); - this.uiTableLayoutPanel3.TabIndex = 0; - this.uiTableLayoutPanel3.TagString = null; - // - // uiPanel6 - // 记录数据 - this.uiPanel6.Controls.Add(this.uiButton7); - this.uiPanel6.Dock = System.Windows.Forms.DockStyle.Fill; - this.uiPanel6.FillColor = System.Drawing.Color.White; - this.uiPanel6.Font = new System.Drawing.Font("宋体", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.uiPanel6.Location = new System.Drawing.Point(9, 10); - this.uiPanel6.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.uiPanel6.MinimumSize = new System.Drawing.Size(1, 1); - this.uiPanel6.Name = "uiPanel6"; - this.uiPanel6.RectColor = System.Drawing.Color.White; - this.uiPanel6.Size = new System.Drawing.Size(154, 31); - this.uiPanel6.TabIndex = 0; - this.uiPanel6.Text = null; - this.uiPanel6.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; - // - // uiButton7 - // - this.uiButton7.Cursor = System.Windows.Forms.Cursors.Hand; - this.uiButton7.Dock = System.Windows.Forms.DockStyle.Fill; - this.uiButton7.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(180)))), ((int)(((byte)(255))))); - this.uiButton7.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(140)))), ((int)(((byte)(235))))); - this.uiButton7.Font = new System.Drawing.Font("微软雅黑", 10F); - this.uiButton7.Location = new System.Drawing.Point(0, 0); - this.uiButton7.MinimumSize = new System.Drawing.Size(1, 1); - this.uiButton7.Name = "uiButton7"; - this.uiButton7.Size = new System.Drawing.Size(154, 31); - this.uiButton7.TabIndex = 2; - this.uiButton7.Text = "录入系统"; - this.uiButton7.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.uiButton7.Click += new System.EventHandler(this.uiButton7_Click); - // - // uiButton1 - // - this.uiButton1.Cursor = System.Windows.Forms.Cursors.Hand; - this.uiButton1.Dock = System.Windows.Forms.DockStyle.Fill; - this.uiButton1.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(180)))), ((int)(((byte)(255))))); - this.uiButton1.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(140)))), ((int)(((byte)(235))))); - this.uiButton1.Font = new System.Drawing.Font("微软雅黑", 10F); - this.uiButton1.Location = new System.Drawing.Point(8, 49); - this.uiButton1.MinimumSize = new System.Drawing.Size(1, 1); - this.uiButton1.Name = "uiButton1"; - this.uiButton1.Size = new System.Drawing.Size(156, 35); - this.uiButton1.TabIndex = 1; - this.uiButton1.Text = "记录数据"; - this.uiButton1.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.uiButton1.Click += new System.EventHandler(this.uiButton1_Click); - // // uiTableLayoutPanel5 // this.uiTableLayoutPanel5.ColumnCount = 1; @@ -591,7 +464,7 @@ namespace 全自动水压检测仪 this.uiTableLayoutPanel5.RowCount = 2; this.uiTableLayoutPanel5.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 40F)); this.uiTableLayoutPanel5.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 60F)); - this.uiTableLayoutPanel5.Size = new System.Drawing.Size(764, 562); + this.uiTableLayoutPanel5.Size = new System.Drawing.Size(766, 556); this.uiTableLayoutPanel5.TabIndex = 1; this.uiTableLayoutPanel5.TagString = null; // @@ -608,7 +481,7 @@ namespace 全自动水压检测仪 this.uiPanel18.Padding = new System.Windows.Forms.Padding(3); this.uiPanel18.Radius = 8; this.uiPanel18.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220))))); - this.uiPanel18.Size = new System.Drawing.Size(754, 214); + this.uiPanel18.Size = new System.Drawing.Size(756, 211); this.uiPanel18.TabIndex = 2; this.uiPanel18.Text = null; this.uiPanel18.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; @@ -627,7 +500,7 @@ namespace 全自动水压检测仪 this.uiTableLayoutPanel10.RowCount = 2; this.uiTableLayoutPanel10.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 13F)); this.uiTableLayoutPanel10.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 87F)); - this.uiTableLayoutPanel10.Size = new System.Drawing.Size(750, 208); + this.uiTableLayoutPanel10.Size = new System.Drawing.Size(750, 205); this.uiTableLayoutPanel10.TabIndex = 0; this.uiTableLayoutPanel10.TagString = null; // @@ -661,7 +534,7 @@ namespace 全自动水压检测仪 this.uiTableLayoutPanel11.Name = "uiTableLayoutPanel11"; this.uiTableLayoutPanel11.RowCount = 1; this.uiTableLayoutPanel11.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.uiTableLayoutPanel11.Size = new System.Drawing.Size(734, 167); + this.uiTableLayoutPanel11.Size = new System.Drawing.Size(734, 164); this.uiTableLayoutPanel11.TabIndex = 2; this.uiTableLayoutPanel11.TagString = null; // @@ -682,7 +555,7 @@ namespace 全自动水压检测仪 this.uiTableLayoutPanel16.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.3F)); this.uiTableLayoutPanel16.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.4F)); this.uiTableLayoutPanel16.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); - this.uiTableLayoutPanel16.Size = new System.Drawing.Size(252, 161); + this.uiTableLayoutPanel16.Size = new System.Drawing.Size(252, 158); this.uiTableLayoutPanel16.TabIndex = 11; this.uiTableLayoutPanel16.TagString = null; // @@ -692,7 +565,7 @@ namespace 全自动水压检测仪 this.uiPanel35.Controls.Add(this.uiLabel43); this.uiPanel35.FillColor = System.Drawing.Color.White; this.uiPanel35.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.uiPanel35.Location = new System.Drawing.Point(4, 111); + this.uiPanel35.Location = new System.Drawing.Point(4, 109); this.uiPanel35.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.uiPanel35.MinimumSize = new System.Drawing.Size(1, 1); this.uiPanel35.Name = "uiPanel35"; @@ -718,7 +591,7 @@ namespace 全自动水压检测仪 // this.uiLabel43.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.uiLabel43.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); - this.uiLabel43.Location = new System.Drawing.Point(0, 3); + this.uiLabel43.Location = new System.Drawing.Point(12, 3); this.uiLabel43.Name = "uiLabel43"; this.uiLabel43.Size = new System.Drawing.Size(121, 30); this.uiLabel43.TabIndex = 0; @@ -748,7 +621,7 @@ namespace 全自动水压检测仪 this.uiLabel9.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(60)))), ((int)(((byte)(60))))); this.uiLabel9.Location = new System.Drawing.Point(123, 3); this.uiLabel9.Name = "uiLabel9"; - this.uiLabel9.Size = new System.Drawing.Size(71, 30); + this.uiLabel9.Size = new System.Drawing.Size(82, 30); this.uiLabel9.TabIndex = 2; this.uiLabel9.Text = "00:00:00"; this.uiLabel9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; @@ -757,9 +630,9 @@ namespace 全自动水压检测仪 // this.uiLabel10.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.uiLabel10.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); - this.uiLabel10.Location = new System.Drawing.Point(0, 3); + this.uiLabel10.Location = new System.Drawing.Point(12, 3); this.uiLabel10.Name = "uiLabel10"; - this.uiLabel10.Size = new System.Drawing.Size(121, 30); + this.uiLabel10.Size = new System.Drawing.Size(102, 30); this.uiLabel10.TabIndex = 0; this.uiLabel10.Text = "测试时间:"; this.uiLabel10.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; @@ -770,7 +643,7 @@ namespace 全自动水压检测仪 this.uiPanel33.Controls.Add(this.uiLabel39); this.uiPanel33.FillColor = System.Drawing.Color.White; this.uiPanel33.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.uiPanel33.Location = new System.Drawing.Point(4, 58); + this.uiPanel33.Location = new System.Drawing.Point(4, 57); this.uiPanel33.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.uiPanel33.MinimumSize = new System.Drawing.Size(1, 1); this.uiPanel33.Name = "uiPanel33"; @@ -796,7 +669,7 @@ namespace 全自动水压检测仪 // this.uiLabel39.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.uiLabel39.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); - this.uiLabel39.Location = new System.Drawing.Point(0, 3); + this.uiLabel39.Location = new System.Drawing.Point(12, 3); this.uiLabel39.Name = "uiLabel39"; this.uiLabel39.Size = new System.Drawing.Size(121, 30); this.uiLabel39.TabIndex = 0; @@ -819,7 +692,7 @@ namespace 全自动水压检测仪 this.uiTableLayoutPanel13.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.3F)); this.uiTableLayoutPanel13.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.3F)); this.uiTableLayoutPanel13.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.4F)); - this.uiTableLayoutPanel13.Size = new System.Drawing.Size(250, 161); + this.uiTableLayoutPanel13.Size = new System.Drawing.Size(250, 158); this.uiTableLayoutPanel13.TabIndex = 9; this.uiTableLayoutPanel13.TagString = null; // @@ -832,12 +705,12 @@ namespace 全自动水压检测仪 this.uiPanel31.Dock = System.Windows.Forms.DockStyle.Fill; this.uiPanel31.FillColor = System.Drawing.Color.White; this.uiPanel31.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.uiPanel31.Location = new System.Drawing.Point(4, 111); + this.uiPanel31.Location = new System.Drawing.Point(4, 109); this.uiPanel31.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.uiPanel31.MinimumSize = new System.Drawing.Size(1, 1); this.uiPanel31.Name = "uiPanel31"; this.uiPanel31.RectColor = System.Drawing.Color.White; - this.uiPanel31.Size = new System.Drawing.Size(242, 45); + this.uiPanel31.Size = new System.Drawing.Size(242, 44); this.uiPanel31.TabIndex = 6; this.uiPanel31.Text = null; this.uiPanel31.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; @@ -895,12 +768,12 @@ namespace 全自动水压检测仪 this.uiPanel23.Dock = System.Windows.Forms.DockStyle.Fill; this.uiPanel23.FillColor = System.Drawing.Color.White; this.uiPanel23.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.uiPanel23.Location = new System.Drawing.Point(4, 58); + this.uiPanel23.Location = new System.Drawing.Point(4, 57); this.uiPanel23.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.uiPanel23.MinimumSize = new System.Drawing.Size(1, 1); this.uiPanel23.Name = "uiPanel23"; this.uiPanel23.RectColor = System.Drawing.Color.White; - this.uiPanel23.Size = new System.Drawing.Size(242, 43); + this.uiPanel23.Size = new System.Drawing.Size(242, 42); this.uiPanel23.TabIndex = 5; this.uiPanel23.Text = null; this.uiPanel23.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; @@ -962,7 +835,7 @@ namespace 全自动水压检测仪 this.uiPanel27.MinimumSize = new System.Drawing.Size(1, 1); this.uiPanel27.Name = "uiPanel27"; this.uiPanel27.RectColor = System.Drawing.Color.White; - this.uiPanel27.Size = new System.Drawing.Size(242, 43); + this.uiPanel27.Size = new System.Drawing.Size(242, 42); this.uiPanel27.TabIndex = 4; this.uiPanel27.Text = null; this.uiPanel27.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; @@ -972,7 +845,7 @@ namespace 全自动水压检测仪 this.uiLabel28.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(245)))), ((int)(((byte)(245)))), ((int)(((byte)(245))))); this.uiLabel28.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold); this.uiLabel28.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(60)))), ((int)(((byte)(60))))); - this.uiLabel28.Location = new System.Drawing.Point(148, 1); + this.uiLabel28.Location = new System.Drawing.Point(148, 3); this.uiLabel28.Name = "uiLabel28"; this.uiLabel28.Size = new System.Drawing.Size(80, 30); this.uiLabel28.TabIndex = 2; @@ -983,9 +856,9 @@ namespace 全自动水压检测仪 // this.uiLabel29.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.uiLabel29.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80))))); - this.uiLabel29.Location = new System.Drawing.Point(-2, 1); + this.uiLabel29.Location = new System.Drawing.Point(-2, 3); this.uiLabel29.Name = "uiLabel29"; - this.uiLabel29.Size = new System.Drawing.Size(121, 30); + this.uiLabel29.Size = new System.Drawing.Size(117, 30); this.uiLabel29.TabIndex = 0; this.uiLabel29.Text = "实时压力(PSI):"; this.uiLabel29.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; @@ -1012,7 +885,7 @@ namespace 全自动水压检测仪 this.uiPanel26.MinimumSize = new System.Drawing.Size(1, 1); this.uiPanel26.Name = "uiPanel26"; this.uiPanel26.RectColor = System.Drawing.Color.White; - this.uiPanel26.Size = new System.Drawing.Size(212, 157); + this.uiPanel26.Size = new System.Drawing.Size(212, 154); this.uiPanel26.TabIndex = 6; this.uiPanel26.Text = null; this.uiPanel26.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; @@ -1033,7 +906,7 @@ namespace 全自动水压检测仪 this.uiTableLayoutPanel12.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.3F)); this.uiTableLayoutPanel12.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.3F)); this.uiTableLayoutPanel12.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.4F)); - this.uiTableLayoutPanel12.Size = new System.Drawing.Size(212, 157); + this.uiTableLayoutPanel12.Size = new System.Drawing.Size(212, 154); this.uiTableLayoutPanel12.TabIndex = 2; this.uiTableLayoutPanel12.TagString = null; // @@ -1044,12 +917,12 @@ namespace 全自动水压检测仪 this.uiPanel24.Dock = System.Windows.Forms.DockStyle.Fill; this.uiPanel24.FillColor = System.Drawing.Color.White; this.uiPanel24.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.uiPanel24.Location = new System.Drawing.Point(4, 109); + this.uiPanel24.Location = new System.Drawing.Point(4, 107); this.uiPanel24.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.uiPanel24.MinimumSize = new System.Drawing.Size(1, 1); this.uiPanel24.Name = "uiPanel24"; this.uiPanel24.RectColor = System.Drawing.Color.White; - this.uiPanel24.Size = new System.Drawing.Size(204, 43); + this.uiPanel24.Size = new System.Drawing.Size(204, 42); this.uiPanel24.TabIndex = 6; this.uiPanel24.Text = null; this.uiPanel24.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; @@ -1085,12 +958,12 @@ namespace 全自动水压检测仪 this.uiPanel22.Dock = System.Windows.Forms.DockStyle.Fill; this.uiPanel22.FillColor = System.Drawing.Color.White; this.uiPanel22.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.uiPanel22.Location = new System.Drawing.Point(4, 57); + this.uiPanel22.Location = new System.Drawing.Point(4, 56); this.uiPanel22.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.uiPanel22.MinimumSize = new System.Drawing.Size(1, 1); this.uiPanel22.Name = "uiPanel22"; this.uiPanel22.RectColor = System.Drawing.Color.White; - this.uiPanel22.Size = new System.Drawing.Size(204, 42); + this.uiPanel22.Size = new System.Drawing.Size(204, 41); this.uiPanel22.TabIndex = 5; this.uiPanel22.Text = null; this.uiPanel22.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; @@ -1141,7 +1014,7 @@ namespace 全自动水压检测仪 this.uiPanel21.MinimumSize = new System.Drawing.Size(1, 1); this.uiPanel21.Name = "uiPanel21"; this.uiPanel21.RectColor = System.Drawing.Color.White; - this.uiPanel21.Size = new System.Drawing.Size(204, 42); + this.uiPanel21.Size = new System.Drawing.Size(204, 41); this.uiPanel21.TabIndex = 4; this.uiPanel21.Text = null; this.uiPanel21.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; @@ -1195,14 +1068,14 @@ namespace 全自动水压检测仪 this.uiPanel12.Dock = System.Windows.Forms.DockStyle.Fill; this.uiPanel12.FillColor = System.Drawing.Color.White; this.uiPanel12.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.uiPanel12.Location = new System.Drawing.Point(5, 230); + this.uiPanel12.Location = new System.Drawing.Point(5, 227); this.uiPanel12.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.uiPanel12.MinimumSize = new System.Drawing.Size(1, 1); this.uiPanel12.Name = "uiPanel12"; this.uiPanel12.Padding = new System.Windows.Forms.Padding(3); this.uiPanel12.Radius = 8; this.uiPanel12.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220))))); - this.uiPanel12.Size = new System.Drawing.Size(756, 215); + this.uiPanel12.Size = new System.Drawing.Size(756, 323); this.uiPanel12.TabIndex = 3; this.uiPanel12.Text = null; this.uiPanel12.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; @@ -1221,7 +1094,7 @@ namespace 全自动水压检测仪 this.uiTableLayoutPanel8.RowCount = 2; this.uiTableLayoutPanel8.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 13F)); this.uiTableLayoutPanel8.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 87F)); - this.uiTableLayoutPanel8.Size = new System.Drawing.Size(750, 209); + this.uiTableLayoutPanel8.Size = new System.Drawing.Size(750, 317); this.uiTableLayoutPanel8.TabIndex = 0; this.uiTableLayoutPanel8.TagString = null; // @@ -1237,7 +1110,7 @@ namespace 全自动水压检测仪 this.uiPanel13.Name = "uiPanel13"; this.uiPanel13.Radius = 1; this.uiPanel13.RectColor = System.Drawing.Color.White; - this.uiPanel13.Size = new System.Drawing.Size(732, 15); + this.uiPanel13.Size = new System.Drawing.Size(732, 29); this.uiPanel13.TabIndex = 1; this.uiPanel13.Text = " 用户操作设定"; this.uiPanel13.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; @@ -1248,20 +1121,20 @@ namespace 全自动水压检测仪 this.uiTableLayoutPanel9.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.uiTableLayoutPanel9.Controls.Add(this.uiPanel14, 0, 0); this.uiTableLayoutPanel9.Dock = System.Windows.Forms.DockStyle.Fill; - this.uiTableLayoutPanel9.Location = new System.Drawing.Point(8, 33); + this.uiTableLayoutPanel9.Location = new System.Drawing.Point(8, 47); this.uiTableLayoutPanel9.Name = "uiTableLayoutPanel9"; this.uiTableLayoutPanel9.RowCount = 1; this.uiTableLayoutPanel9.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.uiTableLayoutPanel9.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); - this.uiTableLayoutPanel9.Size = new System.Drawing.Size(734, 168); + this.uiTableLayoutPanel9.Size = new System.Drawing.Size(734, 262); this.uiTableLayoutPanel9.TabIndex = 2; this.uiTableLayoutPanel9.TagString = null; // // uiPanel14 // + this.uiPanel14.Controls.Add(this.uiLabel11); + this.uiPanel14.Controls.Add(this.uiTextBox11); this.uiPanel14.Controls.Add(this.uiButton8); - this.uiPanel14.Controls.Add(this.uiButton5); - this.uiPanel14.Controls.Add(this.uiButton4); this.uiPanel14.Controls.Add(this.uiLabel48); this.uiPanel14.Controls.Add(this.uiTextBox9); this.uiPanel14.Controls.Add(this.uiLabel35); @@ -1291,7 +1164,7 @@ namespace 全自动水压检测仪 this.uiPanel14.MinimumSize = new System.Drawing.Size(1, 1); this.uiPanel14.Name = "uiPanel14"; this.uiPanel14.RectColor = System.Drawing.Color.White; - this.uiPanel14.Size = new System.Drawing.Size(726, 158); + this.uiPanel14.Size = new System.Drawing.Size(726, 252); this.uiPanel14.TabIndex = 0; this.uiPanel14.Text = null; this.uiPanel14.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; @@ -1303,7 +1176,7 @@ namespace 全自动水压检测仪 this.uiButton8.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(150)))), ((int)(((byte)(255))))); this.uiButton8.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(120)))), ((int)(((byte)(220))))); this.uiButton8.Font = new System.Drawing.Font("微软雅黑", 11F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.uiButton8.Location = new System.Drawing.Point(430, 127); + this.uiButton8.Location = new System.Drawing.Point(430, 214); this.uiButton8.MinimumSize = new System.Drawing.Size(1, 1); this.uiButton8.Name = "uiButton8"; this.uiButton8.Size = new System.Drawing.Size(65, 32); @@ -1319,11 +1192,11 @@ namespace 全自动水压检测仪 this.uiButton5.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(150)))), ((int)(((byte)(255))))); this.uiButton5.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(120)))), ((int)(((byte)(220))))); this.uiButton5.Font = new System.Drawing.Font("微软雅黑", 13F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.uiButton5.Location = new System.Drawing.Point(122, 195); + this.uiButton5.Location = new System.Drawing.Point(19, 317); this.uiButton5.MinimumSize = new System.Drawing.Size(1, 1); this.uiButton5.Name = "uiButton5"; this.uiButton5.Radius = 8; - this.uiButton5.Size = new System.Drawing.Size(105, 40); + this.uiButton5.Size = new System.Drawing.Size(153, 40); this.uiButton5.TabIndex = 3; this.uiButton5.Text = "高温加水"; this.uiButton5.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); @@ -1336,11 +1209,11 @@ namespace 全自动水压检测仪 this.uiButton4.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(150)))), ((int)(((byte)(255))))); this.uiButton4.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(120)))), ((int)(((byte)(220))))); this.uiButton4.Font = new System.Drawing.Font("微软雅黑", 13F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.uiButton4.Location = new System.Drawing.Point(237, 195); + this.uiButton4.Location = new System.Drawing.Point(19, 369); this.uiButton4.MinimumSize = new System.Drawing.Size(1, 1); this.uiButton4.Name = "uiButton4"; this.uiButton4.Radius = 8; - this.uiButton4.Size = new System.Drawing.Size(105, 40); + this.uiButton4.Size = new System.Drawing.Size(153, 40); this.uiButton4.TabIndex = 3; this.uiButton4.Text = "水箱加热"; this.uiButton4.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); @@ -1350,9 +1223,9 @@ namespace 全自动水压检测仪 // this.uiLabel48.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.uiLabel48.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); - this.uiLabel48.Location = new System.Drawing.Point(271, 9); + this.uiLabel48.Location = new System.Drawing.Point(7, 133); this.uiLabel48.Name = "uiLabel48"; - this.uiLabel48.Size = new System.Drawing.Size(122, 60); + this.uiLabel48.Size = new System.Drawing.Size(139, 30); this.uiLabel48.TabIndex = 14; this.uiLabel48.Text = "出口温度判定(℃):"; this.uiLabel48.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; @@ -1361,7 +1234,7 @@ namespace 全自动水压检测仪 // this.uiTextBox9.Cursor = System.Windows.Forms.Cursors.IBeam; this.uiTextBox9.Font = new System.Drawing.Font("微软雅黑", 10.5F); - this.uiTextBox9.Location = new System.Drawing.Point(397, 9); + this.uiTextBox9.Location = new System.Drawing.Point(156, 134); this.uiTextBox9.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.uiTextBox9.MinimumSize = new System.Drawing.Size(1, 16); this.uiTextBox9.Name = "uiTextBox9"; @@ -1379,7 +1252,7 @@ namespace 全自动水压检测仪 // this.uiLabel35.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.uiLabel35.ForeColor = System.Drawing.Color.Red; - this.uiLabel35.Location = new System.Drawing.Point(7, 126); + this.uiLabel35.Location = new System.Drawing.Point(7, 213); this.uiLabel35.Name = "uiLabel35"; this.uiLabel35.Size = new System.Drawing.Size(90, 30); this.uiLabel35.TabIndex = 2; @@ -1390,7 +1263,7 @@ namespace 全自动水压检测仪 // this.uiLabel49.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.uiLabel49.ForeColor = System.Drawing.Color.Red; - this.uiLabel49.Location = new System.Drawing.Point(235, 126); + this.uiLabel49.Location = new System.Drawing.Point(235, 213); this.uiLabel49.Name = "uiLabel49"; this.uiLabel49.Size = new System.Drawing.Size(50, 30); this.uiLabel49.TabIndex = 17; @@ -1401,7 +1274,7 @@ namespace 全自动水压检测仪 // this.uiLabel37.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.uiLabel37.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); - this.uiLabel37.Location = new System.Drawing.Point(7, 85); + this.uiLabel37.Location = new System.Drawing.Point(7, 93); this.uiLabel37.Name = "uiLabel37"; this.uiLabel37.Size = new System.Drawing.Size(139, 30); this.uiLabel37.TabIndex = 12; @@ -1412,7 +1285,7 @@ namespace 全自动水压检测仪 // this.uiTextBox2.Cursor = System.Windows.Forms.Cursors.IBeam; this.uiTextBox2.Font = new System.Drawing.Font("微软雅黑", 10.5F); - this.uiTextBox2.Location = new System.Drawing.Point(100, 127); + this.uiTextBox2.Location = new System.Drawing.Point(100, 214); this.uiTextBox2.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.uiTextBox2.MinimumSize = new System.Drawing.Size(1, 16); this.uiTextBox2.Name = "uiTextBox2"; @@ -1429,7 +1302,7 @@ namespace 全自动水压检测仪 // this.uiTextBox10.Cursor = System.Windows.Forms.Cursors.IBeam; this.uiTextBox10.Font = new System.Drawing.Font("微软雅黑", 10.5F); - this.uiTextBox10.Location = new System.Drawing.Point(288, 127); + this.uiTextBox10.Location = new System.Drawing.Point(288, 214); this.uiTextBox10.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.uiTextBox10.MinimumSize = new System.Drawing.Size(1, 16); this.uiTextBox10.Name = "uiTextBox10"; @@ -1457,7 +1330,7 @@ namespace 全自动水压检测仪 // this.uiTextBox4.Cursor = System.Windows.Forms.Cursors.IBeam; this.uiTextBox4.Font = new System.Drawing.Font("微软雅黑", 10.5F); - this.uiTextBox4.Location = new System.Drawing.Point(154, 85); + this.uiTextBox4.Location = new System.Drawing.Point(156, 93); this.uiTextBox4.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.uiTextBox4.MinimumSize = new System.Drawing.Size(1, 16); this.uiTextBox4.Name = "uiTextBox4"; @@ -1580,7 +1453,7 @@ namespace 全自动水压检测仪 // this.uiTextBox5.Cursor = System.Windows.Forms.Cursors.IBeam; this.uiTextBox5.Font = new System.Drawing.Font("微软雅黑", 10.5F); - this.uiTextBox5.Location = new System.Drawing.Point(154, 47); + this.uiTextBox5.Location = new System.Drawing.Point(156, 54); this.uiTextBox5.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.uiTextBox5.MinimumSize = new System.Drawing.Size(1, 16); this.uiTextBox5.Name = "uiTextBox5"; @@ -1598,7 +1471,7 @@ namespace 全自动水压检测仪 // this.uiLabel41.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.uiLabel41.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); - this.uiLabel41.Location = new System.Drawing.Point(7, 47); + this.uiLabel41.Location = new System.Drawing.Point(7, 55); this.uiLabel41.Name = "uiLabel41"; this.uiLabel41.Size = new System.Drawing.Size(139, 30); this.uiLabel41.TabIndex = 1; @@ -1609,7 +1482,7 @@ namespace 全自动水压检测仪 // this.uiLabel4.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.uiLabel4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); - this.uiLabel4.Location = new System.Drawing.Point(7, 7); + this.uiLabel4.Location = new System.Drawing.Point(7, 12); this.uiLabel4.Name = "uiLabel4"; this.uiLabel4.Size = new System.Drawing.Size(119, 30); this.uiLabel4.TabIndex = 1; @@ -1623,11 +1496,11 @@ namespace 全自动水压检测仪 this.uiButton13.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(150)))), ((int)(((byte)(255))))); this.uiButton13.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(120)))), ((int)(((byte)(220))))); this.uiButton13.Font = new System.Drawing.Font("微软雅黑", 13F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.uiButton13.Location = new System.Drawing.Point(1, 195); + this.uiButton13.Location = new System.Drawing.Point(560, 175); this.uiButton13.MinimumSize = new System.Drawing.Size(1, 1); this.uiButton13.Name = "uiButton13"; this.uiButton13.Radius = 8; - this.uiButton13.Size = new System.Drawing.Size(105, 40); + this.uiButton13.Size = new System.Drawing.Size(139, 54); this.uiButton13.TabIndex = 1; this.uiButton13.Text = "常温加水"; this.uiButton13.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); @@ -1637,7 +1510,7 @@ namespace 全自动水压检测仪 // this.uiTextBox1.Cursor = System.Windows.Forms.Cursors.IBeam; this.uiTextBox1.Font = new System.Drawing.Font("微软雅黑", 10.5F); - this.uiTextBox1.Location = new System.Drawing.Point(154, 7); + this.uiTextBox1.Location = new System.Drawing.Point(156, 12); this.uiTextBox1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.uiTextBox1.MinimumSize = new System.Drawing.Size(1, 16); this.uiTextBox1.Name = "uiTextBox1"; @@ -1651,154 +1524,6 @@ namespace 全自动水压检测仪 this.uiTextBox1.Watermark = ""; this.uiTextBox1.Click += new System.EventHandler(this.uiTextBox1_Click); // - // uiPanel1 - // - this.uiPanel1.BackColor = System.Drawing.Color.White; - this.uiPanel1.Controls.Add(this.uiButton_Settings); - this.uiPanel1.Controls.Add(this.uiButton14); - this.uiPanel1.Controls.Add(this.uiPanel4); - this.uiPanel1.Controls.Add(this.uiPanel3); - this.uiPanel1.FillColor = System.Drawing.Color.White; - this.uiPanel1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.uiPanel1.Location = new System.Drawing.Point(12, 13); - this.uiPanel1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.uiPanel1.MinimumSize = new System.Drawing.Size(1, 1); - this.uiPanel1.Name = "uiPanel1"; - this.uiPanel1.Size = new System.Drawing.Size(967, 54); - this.uiPanel1.TabIndex = 0; - this.uiPanel1.Text = null; - this.uiPanel1.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; - // - // uiButton_Settings - // - this.uiButton_Settings.Cursor = System.Windows.Forms.Cursors.Hand; - this.uiButton_Settings.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(180)))), ((int)(((byte)(255))))); - this.uiButton_Settings.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(140)))), ((int)(((byte)(235))))); - this.uiButton_Settings.Font = new System.Drawing.Font("微软雅黑", 11F, System.Drawing.FontStyle.Bold); - this.uiButton_Settings.Location = new System.Drawing.Point(15, 8); - this.uiButton_Settings.MinimumSize = new System.Drawing.Size(1, 1); - this.uiButton_Settings.Name = "uiButton_Settings"; - this.uiButton_Settings.Radius = 20; - this.uiButton_Settings.Size = new System.Drawing.Size(100, 38); - this.uiButton_Settings.TabIndex = 8; - this.uiButton_Settings.Text = "⚙ 设置"; - this.uiButton_Settings.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.uiButton_Settings.Click += new System.EventHandler(this.uiButton_Settings_Click); - // - // uiButton14 - // - this.uiButton14.Cursor = System.Windows.Forms.Cursors.Hand; - this.uiButton14.FillColor = System.Drawing.Color.White; - this.uiButton14.FillColor2 = System.Drawing.Color.White; - this.uiButton14.FillDisableColor = System.Drawing.Color.White; - this.uiButton14.FillHoverColor = System.Drawing.Color.White; - this.uiButton14.FillPressColor = System.Drawing.Color.White; - this.uiButton14.FillSelectedColor = System.Drawing.Color.White; - this.uiButton14.Font = new System.Drawing.Font("微软雅黑", 10F); - this.uiButton14.Location = new System.Drawing.Point(438, 11); - this.uiButton14.MinimumSize = new System.Drawing.Size(1, 1); - this.uiButton14.Name = "uiButton14"; - this.uiButton14.RectColor = System.Drawing.Color.White; - this.uiButton14.RectDisableColor = System.Drawing.Color.White; - this.uiButton14.RectHoverColor = System.Drawing.Color.White; - this.uiButton14.RectPressColor = System.Drawing.Color.White; - this.uiButton14.RectSelectedColor = System.Drawing.Color.White; - this.uiButton14.Size = new System.Drawing.Size(41, 38); - this.uiButton14.TabIndex = 6; - this.uiButton14.Text = "系数页"; - this.uiButton14.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.uiButton14.MouseDown += new System.Windows.Forms.MouseEventHandler(this.uiButton14_MouseDown); - this.uiButton14.MouseUp += new System.Windows.Forms.MouseEventHandler(this.uiButton14_MouseUp); - // - // uiPanel4 - // - this.uiPanel4.BackColor = System.Drawing.Color.White; - this.uiPanel4.Controls.Add(this.uiLabel5); - this.uiPanel4.FillColor = System.Drawing.Color.White; - this.uiPanel4.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.uiPanel4.Location = new System.Drawing.Point(747, 5); - this.uiPanel4.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.uiPanel4.MinimumSize = new System.Drawing.Size(1, 1); - this.uiPanel4.Name = "uiPanel4"; - this.uiPanel4.Radius = 20; - this.uiPanel4.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220))))); - this.uiPanel4.Size = new System.Drawing.Size(210, 45); - this.uiPanel4.TabIndex = 4; - this.uiPanel4.Text = null; - this.uiPanel4.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; - // - // uiLabel5 - // - this.uiLabel5.BackColor = System.Drawing.Color.White; - this.uiLabel5.Font = new System.Drawing.Font("微软雅黑", 11F); - this.uiLabel5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); - this.uiLabel5.Location = new System.Drawing.Point(3, 11); - this.uiLabel5.Name = "uiLabel5"; - this.uiLabel5.Size = new System.Drawing.Size(203, 23); - this.uiLabel5.TabIndex = 0; - this.uiLabel5.Text = "时间日期"; - this.uiLabel5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // uiPanel3 - // - this.uiPanel3.BackColor = System.Drawing.Color.White; - this.uiPanel3.Controls.Add(this.uiLabel3); - this.uiPanel3.Controls.Add(this.uiLabel2); - this.uiPanel3.FillColor = System.Drawing.Color.White; - this.uiPanel3.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.uiPanel3.Location = new System.Drawing.Point(511, 5); - this.uiPanel3.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.uiPanel3.MinimumSize = new System.Drawing.Size(1, 1); - this.uiPanel3.Name = "uiPanel3"; - this.uiPanel3.Radius = 20; - this.uiPanel3.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220))))); - this.uiPanel3.Size = new System.Drawing.Size(219, 45); - this.uiPanel3.TabIndex = 3; - this.uiPanel3.Text = null; - this.uiPanel3.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; - // - // uiLabel3 - // - this.uiLabel3.BackColor = System.Drawing.Color.White; - this.uiLabel3.Font = new System.Drawing.Font("微软雅黑", 11F, System.Drawing.FontStyle.Bold); - this.uiLabel3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); - this.uiLabel3.Location = new System.Drawing.Point(96, 7); - this.uiLabel3.Name = "uiLabel3"; - this.uiLabel3.Size = new System.Drawing.Size(108, 30); - this.uiLabel3.TabIndex = 1; - this.uiLabel3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // uiLabel2 - // - this.uiLabel2.BackColor = System.Drawing.Color.White; - this.uiLabel2.Font = new System.Drawing.Font("微软雅黑", 11F); - this.uiLabel2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); - this.uiLabel2.Location = new System.Drawing.Point(19, 11); - this.uiLabel2.Name = "uiLabel2"; - this.uiLabel2.Size = new System.Drawing.Size(90, 23); - this.uiLabel2.TabIndex = 0; - this.uiLabel2.Text = "系统状态:"; - this.uiLabel2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // uiPanel_ChartPlaceholder - // - this.uiPanel_ChartPlaceholder.BackColor = System.Drawing.Color.White; - this.uiPanel_ChartPlaceholder.Dock = System.Windows.Forms.DockStyle.Fill; - this.uiPanel_ChartPlaceholder.FillColor = System.Drawing.Color.White; - this.uiPanel_ChartPlaceholder.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Bold); - this.uiPanel_ChartPlaceholder.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(150)))), ((int)(((byte)(150)))), ((int)(((byte)(150))))); - this.uiPanel_ChartPlaceholder.Location = new System.Drawing.Point(0, 0); - this.uiPanel_ChartPlaceholder.Margin = new System.Windows.Forms.Padding(0); - this.uiPanel_ChartPlaceholder.MinimumSize = new System.Drawing.Size(1, 1); - this.uiPanel_ChartPlaceholder.Name = "uiPanel_ChartPlaceholder"; - this.uiPanel_ChartPlaceholder.Padding = new System.Windows.Forms.Padding(10); - this.uiPanel_ChartPlaceholder.Radius = 8; - this.uiPanel_ChartPlaceholder.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220))))); - this.uiPanel_ChartPlaceholder.Size = new System.Drawing.Size(974, 578); - this.uiPanel_ChartPlaceholder.TabIndex = 2; - this.uiPanel_ChartPlaceholder.Text = "实时曲线图区域(预留)"; - this.uiPanel_ChartPlaceholder.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; - // // uiPanel9 // this.uiPanel9.Controls.Add(this.uiTableLayoutPanel6); @@ -2279,6 +2004,312 @@ namespace 全自动水压检测仪 this.uiLight1.TabIndex = 1; this.uiLight1.Text = "uiLight1"; // + // uiPanel5 + // + this.uiPanel5.Controls.Add(this.uiTableLayoutPanel3); + this.uiPanel5.FillColor = System.Drawing.Color.White; + this.uiPanel5.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.uiPanel5.Location = new System.Drawing.Point(6, 9); + this.uiPanel5.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.uiPanel5.MinimumSize = new System.Drawing.Size(1, 1); + this.uiPanel5.Name = "uiPanel5"; + this.uiPanel5.Radius = 8; + this.uiPanel5.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220))))); + this.uiPanel5.Size = new System.Drawing.Size(178, 100); + this.uiPanel5.TabIndex = 0; + this.uiPanel5.Text = null; + this.uiPanel5.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; + // + // uiTableLayoutPanel3 + // + this.uiTableLayoutPanel3.BackColor = System.Drawing.Color.White; + this.uiTableLayoutPanel3.ColumnCount = 1; + this.uiTableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.uiTableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + this.uiTableLayoutPanel3.Controls.Add(this.uiPanel6, 0, 0); + this.uiTableLayoutPanel3.Controls.Add(this.uiButton1, 0, 1); + this.uiTableLayoutPanel3.Location = new System.Drawing.Point(3, 3); + this.uiTableLayoutPanel3.Name = "uiTableLayoutPanel3"; + this.uiTableLayoutPanel3.Padding = new System.Windows.Forms.Padding(5); + this.uiTableLayoutPanel3.RowCount = 2; + this.uiTableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.uiTableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.uiTableLayoutPanel3.Size = new System.Drawing.Size(172, 92); + this.uiTableLayoutPanel3.TabIndex = 0; + this.uiTableLayoutPanel3.TagString = null; + // + // uiButton1 + // + this.uiButton1.Cursor = System.Windows.Forms.Cursors.Hand; + this.uiButton1.Dock = System.Windows.Forms.DockStyle.Fill; + this.uiButton1.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(180)))), ((int)(((byte)(255))))); + this.uiButton1.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(140)))), ((int)(((byte)(235))))); + this.uiButton1.Font = new System.Drawing.Font("微软雅黑", 10F); + this.uiButton1.Location = new System.Drawing.Point(8, 49); + this.uiButton1.MinimumSize = new System.Drawing.Size(1, 1); + this.uiButton1.Name = "uiButton1"; + this.uiButton1.Size = new System.Drawing.Size(156, 35); + this.uiButton1.TabIndex = 1; + this.uiButton1.Text = "记录数据"; + this.uiButton1.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.uiButton1.Click += new System.EventHandler(this.uiButton1_Click); + // + // uiPanel6 + // + this.uiPanel6.Controls.Add(this.uiButton7); + this.uiPanel6.Dock = System.Windows.Forms.DockStyle.Fill; + this.uiPanel6.FillColor = System.Drawing.Color.White; + this.uiPanel6.Font = new System.Drawing.Font("宋体", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.uiPanel6.Location = new System.Drawing.Point(9, 10); + this.uiPanel6.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.uiPanel6.MinimumSize = new System.Drawing.Size(1, 1); + this.uiPanel6.Name = "uiPanel6"; + this.uiPanel6.RectColor = System.Drawing.Color.White; + this.uiPanel6.Size = new System.Drawing.Size(154, 31); + this.uiPanel6.TabIndex = 0; + this.uiPanel6.Text = null; + this.uiPanel6.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; + // + // uiButton7 + // + this.uiButton7.Cursor = System.Windows.Forms.Cursors.Hand; + this.uiButton7.Dock = System.Windows.Forms.DockStyle.Fill; + this.uiButton7.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(180)))), ((int)(((byte)(255))))); + this.uiButton7.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(140)))), ((int)(((byte)(235))))); + this.uiButton7.Font = new System.Drawing.Font("微软雅黑", 10F); + this.uiButton7.Location = new System.Drawing.Point(0, 0); + this.uiButton7.MinimumSize = new System.Drawing.Size(1, 1); + this.uiButton7.Name = "uiButton7"; + this.uiButton7.Size = new System.Drawing.Size(154, 31); + this.uiButton7.TabIndex = 2; + this.uiButton7.Text = "录入系统"; + this.uiButton7.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.uiButton7.Click += new System.EventHandler(this.uiButton7_Click); + // + // uiPanel7 + // + this.uiPanel7.Controls.Add(this.uiTableLayoutPanel4); + this.uiPanel7.FillColor = System.Drawing.Color.White; + this.uiPanel7.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.uiPanel7.Location = new System.Drawing.Point(7, 122); + this.uiPanel7.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.uiPanel7.MinimumSize = new System.Drawing.Size(1, 1); + this.uiPanel7.Name = "uiPanel7"; + this.uiPanel7.Radius = 8; + this.uiPanel7.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220))))); + this.uiPanel7.Size = new System.Drawing.Size(178, 185); + this.uiPanel7.TabIndex = 1; + this.uiPanel7.Text = null; + this.uiPanel7.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; + // + // uiTableLayoutPanel4 + // + this.uiTableLayoutPanel4.BackColor = System.Drawing.Color.White; + this.uiTableLayoutPanel4.ColumnCount = 1; + this.uiTableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.uiTableLayoutPanel4.Controls.Add(this.uiPanel34, 0, 3); + this.uiTableLayoutPanel4.Controls.Add(this.uiPanel16, 0, 2); + this.uiTableLayoutPanel4.Controls.Add(this.uiPanel15, 0, 1); + this.uiTableLayoutPanel4.Controls.Add(this.uiPanel8, 0, 0); + this.uiTableLayoutPanel4.Location = new System.Drawing.Point(3, 3); + this.uiTableLayoutPanel4.Name = "uiTableLayoutPanel4"; + this.uiTableLayoutPanel4.RowCount = 4; + this.uiTableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 18F)); + this.uiTableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 28F)); + this.uiTableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 27F)); + this.uiTableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 27F)); + this.uiTableLayoutPanel4.Size = new System.Drawing.Size(172, 178); + this.uiTableLayoutPanel4.TabIndex = 0; + this.uiTableLayoutPanel4.TagString = null; + // + // uiPanel8 + // + this.uiPanel8.Dock = System.Windows.Forms.DockStyle.Fill; + this.uiPanel8.FillColor = System.Drawing.Color.White; + this.uiPanel8.Font = new System.Drawing.Font("宋体", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.uiPanel8.Location = new System.Drawing.Point(4, 5); + this.uiPanel8.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.uiPanel8.MinimumSize = new System.Drawing.Size(1, 1); + this.uiPanel8.Name = "uiPanel8"; + this.uiPanel8.RectColor = System.Drawing.Color.White; + this.uiPanel8.Size = new System.Drawing.Size(164, 22); + this.uiPanel8.TabIndex = 0; + this.uiPanel8.Text = "测试控制"; + this.uiPanel8.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; + // + // uiPanel15 + // + this.uiPanel15.Controls.Add(this.uiButton2); + this.uiPanel15.Dock = System.Windows.Forms.DockStyle.Fill; + this.uiPanel15.FillColor = System.Drawing.Color.White; + this.uiPanel15.Font = new System.Drawing.Font("宋体", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.uiPanel15.Location = new System.Drawing.Point(4, 35); + this.uiPanel15.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); + this.uiPanel15.MinimumSize = new System.Drawing.Size(1, 1); + this.uiPanel15.Name = "uiPanel15"; + this.uiPanel15.Padding = new System.Windows.Forms.Padding(5); + this.uiPanel15.RectColor = System.Drawing.Color.White; + this.uiPanel15.Size = new System.Drawing.Size(164, 43); + this.uiPanel15.TabIndex = 3; + this.uiPanel15.Text = null; + this.uiPanel15.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; + // + // uiButton2 + // + this.uiButton2.Cursor = System.Windows.Forms.Cursors.Hand; + this.uiButton2.Dock = System.Windows.Forms.DockStyle.Fill; + this.uiButton2.Font = new System.Drawing.Font("微软雅黑", 11F, System.Drawing.FontStyle.Bold); + this.uiButton2.Location = new System.Drawing.Point(5, 5); + this.uiButton2.MinimumSize = new System.Drawing.Size(1, 33); + this.uiButton2.Name = "uiButton2"; + this.uiButton2.Size = new System.Drawing.Size(154, 33); + this.uiButton2.TabIndex = 1; + this.uiButton2.Text = "启动测试"; + this.uiButton2.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.uiButton2.Click += new System.EventHandler(this.uiButton2_Click); + // + // uiPanel16 + // + this.uiPanel16.Controls.Add(this.uiButton3); + this.uiPanel16.Dock = System.Windows.Forms.DockStyle.Fill; + this.uiPanel16.FillColor = System.Drawing.Color.White; + this.uiPanel16.Font = new System.Drawing.Font("宋体", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.uiPanel16.Location = new System.Drawing.Point(4, 84); + this.uiPanel16.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); + this.uiPanel16.MinimumSize = new System.Drawing.Size(1, 1); + this.uiPanel16.Name = "uiPanel16"; + this.uiPanel16.Padding = new System.Windows.Forms.Padding(5); + this.uiPanel16.RectColor = System.Drawing.Color.White; + this.uiPanel16.Size = new System.Drawing.Size(164, 42); + this.uiPanel16.TabIndex = 4; + this.uiPanel16.Text = null; + this.uiPanel16.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; + // + // uiButton3 + // + this.uiButton3.Cursor = System.Windows.Forms.Cursors.Hand; + this.uiButton3.Dock = System.Windows.Forms.DockStyle.Fill; + this.uiButton3.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.uiButton3.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.uiButton3.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.uiButton3.Font = new System.Drawing.Font("微软雅黑", 11F, System.Drawing.FontStyle.Bold); + this.uiButton3.Location = new System.Drawing.Point(5, 5); + this.uiButton3.MinimumSize = new System.Drawing.Size(1, 31); + this.uiButton3.Name = "uiButton3"; + this.uiButton3.Size = new System.Drawing.Size(154, 32); + this.uiButton3.TabIndex = 2; + this.uiButton3.Text = "停止测试"; + this.uiButton3.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.uiButton3.Click += new System.EventHandler(this.uiButton3_Click); + // + // uiPanel34 + // + this.uiPanel34.Controls.Add(this.uiButton6); + this.uiPanel34.Dock = System.Windows.Forms.DockStyle.Fill; + this.uiPanel34.FillColor = System.Drawing.Color.White; + this.uiPanel34.Font = new System.Drawing.Font("宋体", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.uiPanel34.Location = new System.Drawing.Point(4, 132); + this.uiPanel34.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); + this.uiPanel34.MinimumSize = new System.Drawing.Size(1, 1); + this.uiPanel34.Name = "uiPanel34"; + this.uiPanel34.Padding = new System.Windows.Forms.Padding(5); + this.uiPanel34.RectColor = System.Drawing.Color.White; + this.uiPanel34.Size = new System.Drawing.Size(164, 43); + this.uiPanel34.TabIndex = 5; + this.uiPanel34.Text = null; + this.uiPanel34.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; + // + // uiButton6 + // + this.uiButton6.Cursor = System.Windows.Forms.Cursors.Hand; + this.uiButton6.Dock = System.Windows.Forms.DockStyle.Fill; + this.uiButton6.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(180)))), ((int)(((byte)(0))))); + this.uiButton6.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(200)))), ((int)(((byte)(0))))); + this.uiButton6.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(160)))), ((int)(((byte)(0))))); + this.uiButton6.Font = new System.Drawing.Font("微软雅黑", 11F, System.Drawing.FontStyle.Bold); + this.uiButton6.Location = new System.Drawing.Point(5, 5); + this.uiButton6.MinimumSize = new System.Drawing.Size(1, 34); + this.uiButton6.Name = "uiButton6"; + this.uiButton6.Size = new System.Drawing.Size(154, 34); + this.uiButton6.TabIndex = 1; + this.uiButton6.Text = "清除报警"; + this.uiButton6.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.uiButton6.Click += new System.EventHandler(this.uiButton6_Click); + // + // uiSwitch1 + // + this.uiSwitch1.ActiveColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(80)))), ((int)(((byte)(80))))); + this.uiSwitch1.ActiveText = "高温模式"; + this.uiSwitch1.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Bold); + this.uiSwitch1.InActiveColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); + this.uiSwitch1.InActiveText = "常温模式"; + this.uiSwitch1.Location = new System.Drawing.Point(7, 435); + this.uiSwitch1.MinimumSize = new System.Drawing.Size(1, 1); + this.uiSwitch1.Name = "uiSwitch1"; + this.uiSwitch1.Radius = 25; + this.uiSwitch1.Size = new System.Drawing.Size(178, 50); + this.uiSwitch1.TabIndex = 2; + this.uiSwitch1.Text = "uiSwitch1"; + this.uiSwitch1.Click += new System.EventHandler(this.uiSwitch1_Click); + // + // uiButton9 + // + this.uiButton9.Cursor = System.Windows.Forms.Cursors.Hand; + this.uiButton9.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(130)))), ((int)(((byte)(240))))); + this.uiButton9.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(150)))), ((int)(((byte)(255))))); + this.uiButton9.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(120)))), ((int)(((byte)(220))))); + this.uiButton9.Font = new System.Drawing.Font("微软雅黑", 14F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.uiButton9.Location = new System.Drawing.Point(12, 500); + this.uiButton9.MinimumSize = new System.Drawing.Size(1, 1); + this.uiButton9.Name = "uiButton9"; + this.uiButton9.Size = new System.Drawing.Size(175, 45); + this.uiButton9.TabIndex = 4; + this.uiButton9.Text = "退出"; + this.uiButton9.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.uiButton9.Click += new System.EventHandler(this.uiButton9_Click); + // + // panel1 + // + this.panel1.Controls.Add(this.uiButton9); + this.panel1.Controls.Add(this.uiButton4); + this.panel1.Controls.Add(this.uiButton5); + this.panel1.Controls.Add(this.uiSwitch1); + this.panel1.Controls.Add(this.uiPanel7); + this.panel1.Controls.Add(this.uiPanel5); + this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel1.Location = new System.Drawing.Point(780, 8); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(188, 556); + this.panel1.TabIndex = 0; + // + // uiLabel11 + // + this.uiLabel11.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.uiLabel11.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); + this.uiLabel11.Location = new System.Drawing.Point(278, 12); + this.uiLabel11.Name = "uiLabel11"; + this.uiLabel11.Size = new System.Drawing.Size(112, 30); + this.uiLabel11.TabIndex = 19; + this.uiLabel11.Text = "压差设置(PSI):"; + this.uiLabel11.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // uiTextBox11 + // + this.uiTextBox11.Cursor = System.Windows.Forms.Cursors.IBeam; + this.uiTextBox11.Font = new System.Drawing.Font("微软雅黑", 10.5F); + this.uiTextBox11.Location = new System.Drawing.Point(395, 12); + this.uiTextBox11.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.uiTextBox11.MinimumSize = new System.Drawing.Size(1, 16); + this.uiTextBox11.Name = "uiTextBox11"; + this.uiTextBox11.Padding = new System.Windows.Forms.Padding(5); + this.uiTextBox11.Radius = 3; + this.uiTextBox11.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220))))); + this.uiTextBox11.ShowText = false; + this.uiTextBox11.Size = new System.Drawing.Size(91, 28); + this.uiTextBox11.TabIndex = 20; + this.uiTextBox11.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; + this.uiTextBox11.Watermark = ""; + // // NormalTemperatureMode // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; @@ -2293,19 +2324,13 @@ namespace 全自动水压检测仪 this.Load += new System.EventHandler(this.NormalTemperatureMode_Load); this.Shown += new System.EventHandler(this.NormalTemperatureMode_Shown); this.uiTableLayoutPanel1.ResumeLayout(false); + this.uiPanel1.ResumeLayout(false); + this.uiPanel4.ResumeLayout(false); + this.uiPanel3.ResumeLayout(false); this.uiTabControl_Main.ResumeLayout(false); this.tabPage_Chart.ResumeLayout(false); this.tabPage_Data.ResumeLayout(false); this.uiTableLayoutPanel2.ResumeLayout(false); - this.panel1.ResumeLayout(false); - this.uiPanel7.ResumeLayout(false); - this.uiTableLayoutPanel4.ResumeLayout(false); - this.uiPanel34.ResumeLayout(false); - this.uiPanel16.ResumeLayout(false); - this.uiPanel15.ResumeLayout(false); - this.uiPanel5.ResumeLayout(false); - this.uiTableLayoutPanel3.ResumeLayout(false); - this.uiPanel6.ResumeLayout(false); this.uiTableLayoutPanel5.ResumeLayout(false); this.uiPanel18.ResumeLayout(false); this.uiTableLayoutPanel10.ResumeLayout(false); @@ -2327,9 +2352,6 @@ namespace 全自动水压检测仪 this.uiTableLayoutPanel8.ResumeLayout(false); this.uiTableLayoutPanel9.ResumeLayout(false); this.uiPanel14.ResumeLayout(false); - this.uiPanel1.ResumeLayout(false); - this.uiPanel4.ResumeLayout(false); - this.uiPanel3.ResumeLayout(false); this.uiPanel9.ResumeLayout(false); this.uiTableLayoutPanel6.ResumeLayout(false); this.uiPanel11.ResumeLayout(false); @@ -2346,6 +2368,15 @@ namespace 全自动水压检测仪 this.uiPanel42.ResumeLayout(false); this.uiPanel17.ResumeLayout(false); this.uiPanel2.ResumeLayout(false); + this.uiPanel5.ResumeLayout(false); + this.uiTableLayoutPanel3.ResumeLayout(false); + this.uiPanel6.ResumeLayout(false); + this.uiPanel7.ResumeLayout(false); + this.uiTableLayoutPanel4.ResumeLayout(false); + this.uiPanel15.ResumeLayout(false); + this.uiPanel16.ResumeLayout(false); + this.uiPanel34.ResumeLayout(false); + this.panel1.ResumeLayout(false); this.ResumeLayout(false); } @@ -2364,15 +2395,6 @@ namespace 全自动水压检测仪 private Sunny.UI.UIPanel uiPanel4; private Sunny.UI.UILabel uiLabel5; private Sunny.UI.UITableLayoutPanel uiTableLayoutPanel2; - private System.Windows.Forms.Panel panel1; - private Sunny.UI.UIPanel uiPanel5; - private Sunny.UI.UITableLayoutPanel uiTableLayoutPanel3; - private Sunny.UI.UIButton uiButton1; - private Sunny.UI.UIPanel uiPanel7; - private Sunny.UI.UITableLayoutPanel uiTableLayoutPanel4; - private Sunny.UI.UIPanel uiPanel8; - private Sunny.UI.UIButton uiButton2; - private Sunny.UI.UIButton uiButton3; private Sunny.UI.UITableLayoutPanel uiTableLayoutPanel5; private Sunny.UI.UIPanel uiPanel9; private Sunny.UI.UITableLayoutPanel uiTableLayoutPanel6; @@ -2417,7 +2439,6 @@ namespace 全自动水压检测仪 private Sunny.UI.UIPanel uiPanel14; private Sunny.UI.UILabel uiLabel4; private Sunny.UI.UITextBox uiTextBox1; - private Sunny.UI.UISwitch uiSwitch1; private Sunny.UI.UIButton uiButton13; private Sunny.UI.UIPanel uiPanel17; private Sunny.UI.UILabel uiLabel6; @@ -2468,25 +2489,37 @@ namespace 全自动水压检测仪 private Sunny.UI.UILabel uiLabel48; private Sunny.UI.UITextBox uiTextBox9; private Sunny.UI.UIButton uiButton5; - private Sunny.UI.UIPanel uiPanel15; - private Sunny.UI.UIPanel uiPanel16; private Sunny.UI.UIButton uiButton4; private Sunny.UI.UIPanel uiPanel32; private Sunny.UI.UILight uiLight3; - private Sunny.UI.UIPanel uiPanel34; - private Sunny.UI.UIButton uiButton6; private Sunny.UI.UIPanel uiPanel20; private Sunny.UI.UILabel uiLabel9; private Sunny.UI.UILabel uiLabel10; private Sunny.UI.UIProcessBar uiProcessBar1; private Sunny.UI.UIProcessBar uiProcessBar2; - private Sunny.UI.UIPanel uiPanel6; - private Sunny.UI.UIButton uiButton7; private Sunny.UI.UIButton uiButton8; - private Sunny.UI.UIButton uiButton9; private Sunny.UI.UITabControl uiTabControl_Main; private System.Windows.Forms.TabPage tabPage_Chart; private System.Windows.Forms.TabPage tabPage_Data; + private Panel panel1; + private Sunny.UI.UIButton uiButton9; + private Sunny.UI.UISwitch uiSwitch1; + private Sunny.UI.UIPanel uiPanel7; + private Sunny.UI.UITableLayoutPanel uiTableLayoutPanel4; + private Sunny.UI.UIPanel uiPanel34; + private Sunny.UI.UIButton uiButton6; + private Sunny.UI.UIPanel uiPanel16; + private Sunny.UI.UIButton uiButton3; + private Sunny.UI.UIPanel uiPanel15; + private Sunny.UI.UIButton uiButton2; + private Sunny.UI.UIPanel uiPanel8; + private Sunny.UI.UIPanel uiPanel5; + private Sunny.UI.UITableLayoutPanel uiTableLayoutPanel3; + private Sunny.UI.UIPanel uiPanel6; + private Sunny.UI.UIButton uiButton7; + private Sunny.UI.UIButton uiButton1; + private Sunny.UI.UILabel uiLabel11; + private Sunny.UI.UITextBox uiTextBox11; } } diff --git a/全自动水压检测仪/NormalTemperatureMode.cs b/全自动水压检测仪/NormalTemperatureMode.cs index 9e4a6f2..128b707 100644 --- a/全自动水压检测仪/NormalTemperatureMode.cs +++ b/全自动水压检测仪/NormalTemperatureMode.cs @@ -787,11 +787,13 @@ namespace 全自动水压检测仪 bool currentLowTempState = modbusResults.LowStatus[0]; uiLight1.State = currentLowTempState ? UILightState.On : UILightState.Off; - + + // 如果温度模式状态发生变化,更新控件可见性 if (previousLowTempState != currentLowTempState) { - UpdateControlsVisibilityByMode(); + //UpdateControlsVisibilityByMode(); + UpdateControlsVisibilityByModeOptimized(); } } @@ -802,11 +804,13 @@ namespace 全自动水压检测仪 bool currentHighTempState = modbusResults.HighStatus[0]; uiLight2.State = currentHighTempState ? UILightState.On : UILightState.Off; - + + // 如果温度模式状态发生变化,更新控件可见性 if (previousHighTempState != currentHighTempState) { - UpdateControlsVisibilityByMode(); + //UpdateControlsVisibilityByMode(); + UpdateControlsVisibilityByModeOptimized(); } } @@ -926,6 +930,7 @@ namespace 全自动水压检测仪 } } + private void NormalTemperatureMode_Load(object sender, EventArgs e) { @@ -969,13 +974,15 @@ namespace 全自动水压检测仪 ma = new Function(_modbusMaster); c = new DataChange(); // 暂时注释 - _modbusMaster?.WriteSingleCoil(1, 10030, true); + //_modbusMaster?.WriteSingleCoil(1, 10030, false); + + boolSignal1.OnRisingEdge += BoolSignal1_OnRisingEdge; // 初始化图表 try { - _chartManager.InitializeChart(uiPanel_ChartPlaceholder); + //_chartManager.InitializeChart(uiPanel_ChartPlaceholder); Debug.WriteLine("[NormalTemperatureMode] 图表初始化成功"); } catch (Exception ex) @@ -1283,9 +1290,9 @@ namespace 全自动水压检测仪 try { // 暂停定时器,避免并发访问Modbus - _readTimer?.Stop(); - _readTimerTwo?.Stop(); - _alarmMonitorTimer?.Stop(); + //_readTimer?.Stop(); + //_readTimerTwo?.Stop(); + //_alarmMonitorTimer?.Stop(); // 在后台线程执行Modbus操作 await Task.Run(() => @@ -1296,10 +1303,9 @@ namespace 全自动水压检测仪 } catch (Exception ex) { - Debug.WriteLine($"[uiSwitch1_Click] 切换模式失败: {ex.Message}"); SafeInvoke(() => { - MessageBox.Show($"切换模式失败:{ex.Message}", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); + Debug.WriteLine($"切换模式失败:{ex.Message}", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); }); } }); @@ -1308,28 +1314,28 @@ namespace 全自动水压检测仪 await Task.Delay(800); // 更新控件可见性 - SafeInvoke(() => - { - UpdateControlsVisibilityByMode(); + //SafeInvoke(() => + //{ + // UpdateControlsVisibilityByMode(); - // 更新图表模式 - bool isHighTempMode = uiLight2 != null && uiLight2.State == UILightState.On; - _chartManager?.UpdateChartMode(isHighTempMode); - }); + // // 更新图表模式 + // bool isHighTempMode = uiLight2 != null && uiLight2.State == UILightState.On; + // _chartManager?.UpdateChartMode(isHighTempMode); + //}); - // 恢复定时器 - _readTimer?.Start(); - _readTimerTwo?.Start(); - _alarmMonitorTimer?.Start(); + //// 恢复定时器 + //_readTimer?.Start(); + //_readTimerTwo?.Start(); + //_alarmMonitorTimer?.Start(); } catch (Exception ex) { Debug.WriteLine($"[uiSwitch1_Click] 异常: {ex.Message}"); - // 确保定时器恢复 - _readTimer?.Start(); - _readTimerTwo?.Start(); - _alarmMonitorTimer?.Start(); + //// 确保定时器恢复 + //_readTimer?.Start(); + //_readTimerTwo?.Start(); + //_alarmMonitorTimer?.Start(); } } @@ -1393,7 +1399,7 @@ namespace 全自动水压检测仪 } // 初始化时根据当前模式更新控件可见性 - UpdateControlsVisibilityByMode(); + //UpdateControlsVisibilityByMode(); } //返回录入系统 @@ -1636,126 +1642,205 @@ namespace 全自动水压检测仪 /// 常温模式:显示常温相关参数(常温实时液位、常温加水) /// 高温模式:显示高温相关参数(高温实时液位、箱体温度、出口温度、高温加水、水箱加热) /// - private void UpdateControlsVisibilityByMode() + //private void UpdateControlsVisibilityByMode() + //{ + // try + // { + // // 判断当前是否为高温模式(uiLight2亮起表示高温模式) + // bool isHighTempMode = uiLight2 != null && uiLight2.State == UILightState.On; + // bool isLowTempMode = uiLight1 != null && uiLight1.State == UILightState.On; + + // Debug.WriteLine($"[UpdateControlsVisibilityByMode] 开始更新 - 高温模式: {isHighTempMode}, 常温模式: {isLowTempMode}"); + + // // ========== 高温模式专属控件(高温模式显示,常温模式隐藏) ========== + + // // 高温实时液位(mm) - uiPanel31包含uiLabel7, uiLabel8, uiLabel34, uiProcessBar2 + // if (uiPanel31 != null && !uiPanel31.IsDisposed) + // { + // uiPanel31.Visible = isHighTempMode; + // Debug.WriteLine($"[UpdateControlsVisibilityByMode] uiPanel31(高温液位) Visible = {isHighTempMode}"); + // } + + // // 箱体温度(°C) - uiPanel35包含uiLabel42, uiLabel43(实时数据监控区域) + // if (uiPanel35 != null && !uiPanel35.IsDisposed) + // { + // uiPanel35.Visible = isHighTempMode; + // Debug.WriteLine($"[UpdateControlsVisibilityByMode] uiPanel35(箱体温度) Visible = {isHighTempMode}"); + // } + + // // 出口温度(°C) - uiPanel33包含uiLabel38, uiLabel39(实时数据监控区域) + // if (uiPanel33 != null && !uiPanel33.IsDisposed) + // { + // uiPanel33.Visible = isHighTempMode; + // Debug.WriteLine($"[UpdateControlsVisibilityByMode] uiPanel33(出口温度) Visible = {isHighTempMode}"); + // } + + // // 高温加水按钮 - uiButton5 + // if (uiButton5 != null && !uiButton5.IsDisposed) + // { + // uiButton5.Visible = isHighTempMode; + // Debug.WriteLine($"[UpdateControlsVisibilityByMode] uiButton5(高温加水) Visible = {isHighTempMode}"); + // } + + // // 高温加水指示灯 - uiLight11 + // if (uiPanel43 != null && !uiPanel43.IsDisposed) + // { + // uiPanel43.Visible = isHighTempMode; + // Debug.WriteLine($"[UpdateControlsVisibilityByMode] uiPanel43(高温加水指示灯) Visible = {isHighTempMode}"); + // } + + // // 水箱加热按钮 - uiButton4(用户操作设定区域) + // if (uiButton4 != null && !uiButton4.IsDisposed) + // { + // uiButton4.Visible = isHighTempMode; + // Debug.WriteLine($"[UpdateControlsVisibilityByMode] uiButton4(水箱加热) Visible = {isHighTempMode}"); + // } + + // // 出口温度判定设置 - uiLabel48和uiTextBox9(用户操作设定区域) + // if (uiLabel48 != null && !uiLabel48.IsDisposed) + // { + // uiLabel48.Visible = isHighTempMode; + // Debug.WriteLine($"[UpdateControlsVisibilityByMode] uiLabel48(出口温度标签) Visible = {isHighTempMode}"); + // } + // if (uiTextBox9 != null && !uiTextBox9.IsDisposed) + // { + // uiTextBox9.Visible = isHighTempMode; + // Debug.WriteLine($"[UpdateControlsVisibilityByMode] uiTextBox9(出口温度输入) Visible = {isHighTempMode}"); + // } + + // // 写入按钮 - uiButton8(用于写入联络单号和件号数据到PLC,常温和高温模式都需要) + // // 注意:写入按钮应该始终显示,因为联络单号和件号在两种模式下都需要 + // if (uiButton8 != null && !uiButton8.IsDisposed) + // { + // uiButton8.Visible = true; // 始终显示写入按钮 + // Debug.WriteLine($"[UpdateControlsVisibilityByMode] uiButton8(写入按钮) Visible = true (始终显示)"); + // } + + // // 箱体温度设置 - uiLabel37和uiTextBox4(用户操作设定区域) + // if (uiLabel37 != null && !uiLabel37.IsDisposed) + // { + // uiLabel37.Visible = isHighTempMode; + // Debug.WriteLine($"[UpdateControlsVisibilityByMode] uiLabel37(箱体温度标签) Visible = {isHighTempMode}"); + // } + // if (uiTextBox4 != null && !uiTextBox4.IsDisposed) + // { + // uiTextBox4.Visible = isHighTempMode; + // Debug.WriteLine($"[UpdateControlsVisibilityByMode] uiTextBox4(箱体温度输入) Visible = {isHighTempMode}"); + // } + + // // ========== 常温模式专属控件(常温模式显示,高温模式隐藏) ========== + + // // 常温实时液位(mm) - uiPanel23包含uiLabel12, uiLabel16, uiLabel17, uiProcessBar1 + // if (uiPanel23 != null && !uiPanel23.IsDisposed) + // { + // uiPanel23.Visible = !isHighTempMode; + // Debug.WriteLine($"[UpdateControlsVisibilityByMode] uiPanel23(常温液位) Visible = {!isHighTempMode}"); + // } + + // // 常温加水按钮 - uiButton13 + // if (uiButton13 != null && !uiButton13.IsDisposed) + // { + // uiButton13.Visible = !isHighTempMode; + // Debug.WriteLine($"[UpdateControlsVisibilityByMode] uiButton13(常温加水) Visible = {!isHighTempMode}"); + // } + + // // 常温加水指示灯 - uiLight6 + // if (uiPanel38 != null && !uiPanel38.IsDisposed) + // { + // uiPanel38.Visible = !isHighTempMode; + // Debug.WriteLine($"[UpdateControlsVisibilityByMode] uiPanel38(常温加水指示灯) Visible = {!isHighTempMode}"); + // } + + // Debug.WriteLine($"[UpdateControlsVisibilityByMode] 模式切换完成 - 高温模式: {isHighTempMode}"); + // } + // catch (ObjectDisposedException ex) + // { + // Debug.WriteLine($"[UpdateControlsVisibilityByMode] 控件已释放: {ex.Message}"); + // } + // catch (Exception ex) + // { + // Debug.WriteLine($"[UpdateControlsVisibilityByMode] 更新控件可见性失败: {ex.Message}"); + // Debug.WriteLine($"[UpdateControlsVisibilityByMode] 堆栈跟踪: {ex.StackTrace}"); + // } + //} + private void UpdateControlsVisibilityByModeOptimized() { + // 在更新前暂停布局计算 + this.SuspendLayout(); + try { - // 判断当前是否为高温模式(uiLight2亮起表示高温模式) bool isHighTempMode = uiLight2 != null && uiLight2.State == UILightState.On; - bool isLowTempMode = uiLight1 != null && uiLight1.State == UILightState.On; - Debug.WriteLine($"[UpdateControlsVisibilityByMode] 开始更新 - 高温模式: {isHighTempMode}, 常温模式: {isLowTempMode}"); + Debug.WriteLine($"[优化版] 高温模式: {isHighTempMode}"); - // ========== 高温模式专属控件(高温模式显示,常温模式隐藏) ========== - - // 高温实时液位(mm) - uiPanel31包含uiLabel7, uiLabel8, uiLabel34, uiProcessBar2 - if (uiPanel31 != null && !uiPanel31.IsDisposed) - { - uiPanel31.Visible = isHighTempMode; - Debug.WriteLine($"[UpdateControlsVisibilityByMode] uiPanel31(高温液位) Visible = {isHighTempMode}"); - } - - // 箱体温度(°C) - uiPanel35包含uiLabel42, uiLabel43(实时数据监控区域) - if (uiPanel35 != null && !uiPanel35.IsDisposed) - { - uiPanel35.Visible = isHighTempMode; - Debug.WriteLine($"[UpdateControlsVisibilityByMode] uiPanel35(箱体温度) Visible = {isHighTempMode}"); - } - - // 出口温度(°C) - uiPanel33包含uiLabel38, uiLabel39(实时数据监控区域) - if (uiPanel33 != null && !uiPanel33.IsDisposed) - { - uiPanel33.Visible = isHighTempMode; - Debug.WriteLine($"[UpdateControlsVisibilityByMode] uiPanel33(出口温度) Visible = {isHighTempMode}"); - } - - // 高温加水按钮 - uiButton5 - if (uiButton5 != null && !uiButton5.IsDisposed) - { - uiButton5.Visible = isHighTempMode; - Debug.WriteLine($"[UpdateControlsVisibilityByMode] uiButton5(高温加水) Visible = {isHighTempMode}"); - } - - // 高温加水指示灯 - uiLight11 - if (uiPanel43 != null && !uiPanel43.IsDisposed) - { - uiPanel43.Visible = isHighTempMode; - Debug.WriteLine($"[UpdateControlsVisibilityByMode] uiPanel43(高温加水指示灯) Visible = {isHighTempMode}"); - } - - // 水箱加热按钮 - uiButton4(用户操作设定区域) - if (uiButton4 != null && !uiButton4.IsDisposed) - { - uiButton4.Visible = isHighTempMode; - Debug.WriteLine($"[UpdateControlsVisibilityByMode] uiButton4(水箱加热) Visible = {isHighTempMode}"); - } - - // 出口温度判定设置 - uiLabel48和uiTextBox9(用户操作设定区域) - if (uiLabel48 != null && !uiLabel48.IsDisposed) - { - uiLabel48.Visible = isHighTempMode; - Debug.WriteLine($"[UpdateControlsVisibilityByMode] uiLabel48(出口温度标签) Visible = {isHighTempMode}"); - } - if (uiTextBox9 != null && !uiTextBox9.IsDisposed) - { - uiTextBox9.Visible = isHighTempMode; - Debug.WriteLine($"[UpdateControlsVisibilityByMode] uiTextBox9(出口温度输入) Visible = {isHighTempMode}"); - } - - // 写入按钮 - uiButton8(用于写入联络单号和件号数据到PLC,常温和高温模式都需要) - // 注意:写入按钮应该始终显示,因为联络单号和件号在两种模式下都需要 - if (uiButton8 != null && !uiButton8.IsDisposed) - { - uiButton8.Visible = true; // 始终显示写入按钮 - Debug.WriteLine($"[UpdateControlsVisibilityByMode] uiButton8(写入按钮) Visible = true (始终显示)"); - } - - // 箱体温度设置 - uiLabel37和uiTextBox4(用户操作设定区域) - if (uiLabel37 != null && !uiLabel37.IsDisposed) - { - uiLabel37.Visible = isHighTempMode; - Debug.WriteLine($"[UpdateControlsVisibilityByMode] uiLabel37(箱体温度标签) Visible = {isHighTempMode}"); - } - if (uiTextBox4 != null && !uiTextBox4.IsDisposed) - { - uiTextBox4.Visible = isHighTempMode; - Debug.WriteLine($"[UpdateControlsVisibilityByMode] uiTextBox4(箱体温度输入) Visible = {isHighTempMode}"); - } + // 批量更新,减少中间状态 + UpdateHighTempControls(isHighTempMode); + UpdateNormalTempControls(!isHighTempMode); - // ========== 常温模式专属控件(常温模式显示,高温模式隐藏) ========== - - // 常温实时液位(mm) - uiPanel23包含uiLabel12, uiLabel16, uiLabel17, uiProcessBar1 - if (uiPanel23 != null && !uiPanel23.IsDisposed) - { - uiPanel23.Visible = !isHighTempMode; - Debug.WriteLine($"[UpdateControlsVisibilityByMode] uiPanel23(常温液位) Visible = {!isHighTempMode}"); - } - - // 常温加水按钮 - uiButton13 - if (uiButton13 != null && !uiButton13.IsDisposed) - { - uiButton13.Visible = !isHighTempMode; - Debug.WriteLine($"[UpdateControlsVisibilityByMode] uiButton13(常温加水) Visible = {!isHighTempMode}"); - } - - // 常温加水指示灯 - uiLight6 - if (uiPanel38 != null && !uiPanel38.IsDisposed) - { - uiPanel38.Visible = !isHighTempMode; - Debug.WriteLine($"[UpdateControlsVisibilityByMode] uiPanel38(常温加水指示灯) Visible = {!isHighTempMode}"); - } - - Debug.WriteLine($"[UpdateControlsVisibilityByMode] 模式切换完成 - 高温模式: {isHighTempMode}"); + // 确保写入按钮始终显示 + if (uiButton8 != null) uiButton8.Visible = true; } - catch (ObjectDisposedException ex) + finally { - Debug.WriteLine($"[UpdateControlsVisibilityByMode] 控件已释放: {ex.Message}"); + // 恢复布局计算,只进行一次重绘 + this.ResumeLayout(true); + + // 如果需要,手动设置窗体大小固定 + if (this.FormBorderStyle == FormBorderStyle.Sizable) + { + // 临时锁定窗体大小 + this.MaximumSize = this.Size; + this.MinimumSize = this.Size; + + // 稍后恢复(可选) + Task.Delay(100).ContinueWith(_ => + { + if (!this.IsDisposed) + { + this.Invoke(new Action(() => + { + this.MaximumSize = new Size(0, 0); + this.MinimumSize = new Size(0, 0); + })); + } + }); + } } - catch (Exception ex) + } + + // 分开更新方法 + private void UpdateHighTempControls(bool visible) + { + Control[] highTempControls = { + uiPanel31, uiPanel35, uiPanel33, uiButton5, uiPanel43, + uiButton4, uiLabel48, uiTextBox9, uiLabel37, uiTextBox4 + }; + + foreach (var control in highTempControls) { - Debug.WriteLine($"[UpdateControlsVisibilityByMode] 更新控件可见性失败: {ex.Message}"); - Debug.WriteLine($"[UpdateControlsVisibilityByMode] 堆栈跟踪: {ex.StackTrace}"); + if (control != null && !control.IsDisposed) + { + control.Visible = visible; + } + } + } + + private void UpdateNormalTempControls(bool visible) + { + Control[] normalTempControls = { + uiPanel23, uiButton13, uiPanel38 + }; + + foreach (var control in normalTempControls) + { + if (control != null && !control.IsDisposed) + { + control.Visible = visible; + } } } } + + } \ No newline at end of file diff --git a/全自动水压检测仪/StatusSettingsForm.cs b/全自动水压检测仪/StatusSettingsForm.cs index 11aba22..9e438e6 100644 --- a/全自动水压检测仪/StatusSettingsForm.cs +++ b/全自动水压检测仪/StatusSettingsForm.cs @@ -209,14 +209,14 @@ namespace 全自动水压检测仪 this.tempModePanel.Controls.Add(this.uiLight2_Status); // 当前模式显示 - var currentModeLabel = new Sunny.UI.UILabel(); - currentModeLabel.Location = new System.Drawing.Point(520, 65); - currentModeLabel.Size = new System.Drawing.Size(120, 30); - currentModeLabel.Text = "当前模式:"; - currentModeLabel.Font = new System.Drawing.Font("微软雅黑", 11F); - currentModeLabel.ForeColor = System.Drawing.Color.FromArgb(100, 100, 100); - currentModeLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - this.tempModePanel.Controls.Add(currentModeLabel); + //var currentModeLabel = new Sunny.UI.UILabel(); + //currentModeLabel.Location = new System.Drawing.Point(520, 65); + //currentModeLabel.Size = new System.Drawing.Size(120, 30); + //currentModeLabel.Text = "当前模式:"; + //currentModeLabel.Font = new System.Drawing.Font("微软雅黑", 11F); + //currentModeLabel.ForeColor = System.Drawing.Color.FromArgb(100, 100, 100); + //currentModeLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + //this.tempModePanel.Controls.Add(currentModeLabel); // uiLabel11_Status this.uiLabel11_Status.Location = new System.Drawing.Point(640, 65);