This commit is contained in:
@@ -1,22 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||
</startup>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.2" newVersion="4.0.1.2" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||
</startup>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.2" newVersion="4.0.1.2" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
<appSettings>
|
||||
<add key="MaxExpirationPeriodInDays" value="40" />
|
||||
<add key="ReminderPeriodInDays" value="7" />
|
||||
<add key="AllowModified" value="0" />
|
||||
<!--1允许修改报表,0不允许修改报表-->
|
||||
</appSettings>
|
||||
</configuration>
|
||||
130
全自动水压检测仪/Coeffiicientsetting.Designer.cs
generated
130
全自动水压检测仪/Coeffiicientsetting.Designer.cs
generated
@@ -86,9 +86,13 @@
|
||||
this.uiTextBox10 = new Sunny.UI.UITextBox();
|
||||
this.uiLabel10 = new Sunny.UI.UILabel();
|
||||
this.uiPanel12 = new Sunny.UI.UIPanel();
|
||||
this.uiTextBox18 = new Sunny.UI.UITextBox();
|
||||
this.uiLabel18 = new Sunny.UI.UILabel();
|
||||
this.uiTextBox9 = new Sunny.UI.UITextBox();
|
||||
this.uiLabel9 = new Sunny.UI.UILabel();
|
||||
this.uiPanel10 = new Sunny.UI.UIPanel();
|
||||
this.uiTextBox4 = new Sunny.UI.UITextBox();
|
||||
this.uiLabel4 = new Sunny.UI.UILabel();
|
||||
this.uiTextBox7 = new Sunny.UI.UITextBox();
|
||||
this.uiLabel7 = new Sunny.UI.UILabel();
|
||||
this.uiPanel19 = new Sunny.UI.UIPanel();
|
||||
@@ -100,10 +104,7 @@
|
||||
this.uiButton3 = new Sunny.UI.UIButton();
|
||||
this.uiButton2 = new Sunny.UI.UIButton();
|
||||
this.uiButton1 = new Sunny.UI.UIButton();
|
||||
this.uiTextBox4 = new Sunny.UI.UITextBox();
|
||||
this.uiLabel4 = new Sunny.UI.UILabel();
|
||||
this.uiTextBox18 = new Sunny.UI.UITextBox();
|
||||
this.uiLabel18 = new Sunny.UI.UILabel();
|
||||
this.uiCheckBox1 = new Sunny.UI.UICheckBox();
|
||||
this.uiTableLayoutPanel1.SuspendLayout();
|
||||
this.uiGroupBox4.SuspendLayout();
|
||||
this.uiTableLayoutPanel7.SuspendLayout();
|
||||
@@ -1044,6 +1045,33 @@
|
||||
this.uiPanel12.Text = null;
|
||||
this.uiPanel12.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// uiTextBox18
|
||||
//
|
||||
this.uiTextBox18.Cursor = System.Windows.Forms.Cursors.IBeam;
|
||||
this.uiTextBox18.FillColor = System.Drawing.Color.Yellow;
|
||||
this.uiTextBox18.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.uiTextBox18.Location = new System.Drawing.Point(382, 1);
|
||||
this.uiTextBox18.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||
this.uiTextBox18.MinimumSize = new System.Drawing.Size(1, 16);
|
||||
this.uiTextBox18.Name = "uiTextBox18";
|
||||
this.uiTextBox18.Padding = new System.Windows.Forms.Padding(5);
|
||||
this.uiTextBox18.ShowText = false;
|
||||
this.uiTextBox18.Size = new System.Drawing.Size(87, 35);
|
||||
this.uiTextBox18.TabIndex = 8;
|
||||
this.uiTextBox18.Text = "0.00";
|
||||
this.uiTextBox18.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
this.uiTextBox18.Watermark = "";
|
||||
//
|
||||
// uiLabel18
|
||||
//
|
||||
this.uiLabel18.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.uiLabel18.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
|
||||
this.uiLabel18.Location = new System.Drawing.Point(304, 1);
|
||||
this.uiLabel18.Name = "uiLabel18";
|
||||
this.uiLabel18.Size = new System.Drawing.Size(74, 36);
|
||||
this.uiLabel18.TabIndex = 7;
|
||||
this.uiLabel18.Text = "压力保护:";
|
||||
//
|
||||
// uiTextBox9
|
||||
//
|
||||
this.uiTextBox9.Cursor = System.Windows.Forms.Cursors.IBeam;
|
||||
@@ -1091,6 +1119,33 @@
|
||||
this.uiPanel10.Text = null;
|
||||
this.uiPanel10.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// uiTextBox4
|
||||
//
|
||||
this.uiTextBox4.Cursor = System.Windows.Forms.Cursors.IBeam;
|
||||
this.uiTextBox4.FillColor = System.Drawing.Color.Yellow;
|
||||
this.uiTextBox4.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.uiTextBox4.Location = new System.Drawing.Point(384, 1);
|
||||
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";
|
||||
this.uiTextBox4.Padding = new System.Windows.Forms.Padding(5);
|
||||
this.uiTextBox4.ShowText = false;
|
||||
this.uiTextBox4.Size = new System.Drawing.Size(86, 35);
|
||||
this.uiTextBox4.TabIndex = 6;
|
||||
this.uiTextBox4.Text = "0.00";
|
||||
this.uiTextBox4.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
this.uiTextBox4.Watermark = "";
|
||||
//
|
||||
// uiLabel4
|
||||
//
|
||||
this.uiLabel4.Font = new System.Drawing.Font("微软雅黑", 12F, 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(304, 1);
|
||||
this.uiLabel4.Name = "uiLabel4";
|
||||
this.uiLabel4.Size = new System.Drawing.Size(74, 36);
|
||||
this.uiLabel4.TabIndex = 5;
|
||||
this.uiLabel4.Text = "温度保护:";
|
||||
//
|
||||
// uiTextBox7
|
||||
//
|
||||
this.uiTextBox7.Cursor = System.Windows.Forms.Cursors.IBeam;
|
||||
@@ -1121,6 +1176,7 @@
|
||||
//
|
||||
// uiPanel19
|
||||
//
|
||||
this.uiPanel19.Controls.Add(this.uiCheckBox1);
|
||||
this.uiPanel19.Controls.Add(this.uiButton10);
|
||||
this.uiPanel19.Controls.Add(this.uiButton11);
|
||||
this.uiPanel19.Controls.Add(this.uiButton12);
|
||||
@@ -1246,61 +1302,18 @@
|
||||
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);
|
||||
//
|
||||
// uiTextBox4
|
||||
// uiCheckBox1
|
||||
//
|
||||
this.uiTextBox4.Cursor = System.Windows.Forms.Cursors.IBeam;
|
||||
this.uiTextBox4.FillColor = System.Drawing.Color.Yellow;
|
||||
this.uiTextBox4.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.uiTextBox4.Location = new System.Drawing.Point(384, 1);
|
||||
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";
|
||||
this.uiTextBox4.Padding = new System.Windows.Forms.Padding(5);
|
||||
this.uiTextBox4.ShowText = false;
|
||||
this.uiTextBox4.Size = new System.Drawing.Size(86, 35);
|
||||
this.uiTextBox4.TabIndex = 6;
|
||||
this.uiTextBox4.Text = "0.00";
|
||||
this.uiTextBox4.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
this.uiTextBox4.Watermark = "";
|
||||
//this.uiTextBox4.Click += new System.EventHandler(this.uiTextBox4_Click);
|
||||
//
|
||||
// uiLabel4
|
||||
//
|
||||
this.uiLabel4.Font = new System.Drawing.Font("微软雅黑", 12F, 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(304, 1);
|
||||
this.uiLabel4.Name = "uiLabel4";
|
||||
this.uiLabel4.Size = new System.Drawing.Size(74, 36);
|
||||
this.uiLabel4.TabIndex = 5;
|
||||
this.uiLabel4.Text = "温度保护:";
|
||||
//
|
||||
// uiTextBox18
|
||||
//
|
||||
this.uiTextBox18.Cursor = System.Windows.Forms.Cursors.IBeam;
|
||||
this.uiTextBox18.FillColor = System.Drawing.Color.Yellow;
|
||||
this.uiTextBox18.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.uiTextBox18.Location = new System.Drawing.Point(382, 1);
|
||||
this.uiTextBox18.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||
this.uiTextBox18.MinimumSize = new System.Drawing.Size(1, 16);
|
||||
this.uiTextBox18.Name = "uiTextBox18";
|
||||
this.uiTextBox18.Padding = new System.Windows.Forms.Padding(5);
|
||||
this.uiTextBox18.ShowText = false;
|
||||
this.uiTextBox18.Size = new System.Drawing.Size(87, 35);
|
||||
this.uiTextBox18.TabIndex = 8;
|
||||
this.uiTextBox18.Text = "0.00";
|
||||
this.uiTextBox18.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
this.uiTextBox18.Watermark = "";
|
||||
//this.uiTextBox18.Click += new System.EventHandler(this.uiTextBox18_Click);
|
||||
//
|
||||
// uiLabel18
|
||||
//
|
||||
this.uiLabel18.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.uiLabel18.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
|
||||
this.uiLabel18.Location = new System.Drawing.Point(304, 1);
|
||||
this.uiLabel18.Name = "uiLabel18";
|
||||
this.uiLabel18.Size = new System.Drawing.Size(74, 36);
|
||||
this.uiLabel18.TabIndex = 7;
|
||||
this.uiLabel18.Text = "压力保护:";
|
||||
this.uiCheckBox1.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.uiCheckBox1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.uiCheckBox1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
|
||||
this.uiCheckBox1.Location = new System.Drawing.Point(633, 40);
|
||||
this.uiCheckBox1.MinimumSize = new System.Drawing.Size(1, 1);
|
||||
this.uiCheckBox1.Name = "uiCheckBox1";
|
||||
this.uiCheckBox1.Size = new System.Drawing.Size(150, 29);
|
||||
this.uiCheckBox1.TabIndex = 12;
|
||||
this.uiCheckBox1.Text = "允许修改报表";
|
||||
this.uiCheckBox1.CheckedChanged += new System.EventHandler(this.uiCheckBox1_CheckedChanged);
|
||||
//
|
||||
// Coeffiicientsetting
|
||||
//
|
||||
@@ -1426,5 +1439,6 @@
|
||||
private Sunny.UI.UILabel uiLabel18;
|
||||
private Sunny.UI.UITextBox uiTextBox4;
|
||||
private Sunny.UI.UILabel uiLabel4;
|
||||
private Sunny.UI.UICheckBox uiCheckBox1;
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,7 @@ using Sunny.UI;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Configuration;
|
||||
using System.Data;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
@@ -536,6 +537,26 @@ namespace 全自动水压检测仪
|
||||
}
|
||||
}
|
||||
|
||||
private void uiCheckBox1_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
|
||||
|
||||
if (uiCheckBox1.Checked)
|
||||
{
|
||||
// 更新或添加一个键值对到 AppSettings 配置节
|
||||
config.AppSettings.Settings["AllowModified"].Value = "1";
|
||||
}
|
||||
else
|
||||
{
|
||||
// 更新或添加一个键值对到 AppSettings 配置节
|
||||
config.AppSettings.Settings["AllowModified"].Value = "0";
|
||||
|
||||
}
|
||||
// 保存更改到配置文件
|
||||
config.Save(ConfigurationSaveMode.Modified);
|
||||
ConfigurationManager.RefreshSection("appSettings");
|
||||
}
|
||||
|
||||
////温度保护
|
||||
//private void uiTextBox4_Click(object sender, EventArgs e)
|
||||
//{
|
||||
|
||||
62
全自动水压检测仪/NormalTemperatureMode.Designer.cs
generated
62
全自动水压检测仪/NormalTemperatureMode.Designer.cs
generated
@@ -112,6 +112,8 @@ namespace 全自动水压检测仪
|
||||
this.uiPanel13 = new Sunny.UI.UIPanel();
|
||||
this.uiTableLayoutPanel9 = new Sunny.UI.UITableLayoutPanel();
|
||||
this.uiPanel14 = new Sunny.UI.UIPanel();
|
||||
this.uiLabel26 = new Sunny.UI.UILabel();
|
||||
this.uiTextBox14 = new Sunny.UI.UITextBox();
|
||||
this.uiLabel25 = new Sunny.UI.UILabel();
|
||||
this.uiTextBox13 = new Sunny.UI.UITextBox();
|
||||
this.uiLabel24 = new Sunny.UI.UILabel();
|
||||
@@ -171,8 +173,6 @@ namespace 全自动水压检测仪
|
||||
this.uiPanel2 = new Sunny.UI.UIPanel();
|
||||
this.uiLabel1 = new Sunny.UI.UILabel();
|
||||
this.uiLight1 = new Sunny.UI.UILight();
|
||||
this.uiLabel26 = new Sunny.UI.UILabel();
|
||||
this.uiTextBox14 = new Sunny.UI.UITextBox();
|
||||
this.uiTableLayoutPanel1.SuspendLayout();
|
||||
this.uiPanel1.SuspendLayout();
|
||||
this.uiPanel4.SuspendLayout();
|
||||
@@ -1493,6 +1493,35 @@ namespace 全自动水压检测仪
|
||||
this.uiPanel14.Text = null;
|
||||
this.uiPanel14.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// uiLabel26
|
||||
//
|
||||
this.uiLabel26.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.uiLabel26.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
|
||||
this.uiLabel26.Location = new System.Drawing.Point(277, 135);
|
||||
this.uiLabel26.Name = "uiLabel26";
|
||||
this.uiLabel26.Size = new System.Drawing.Size(112, 30);
|
||||
this.uiLabel26.TabIndex = 25;
|
||||
this.uiLabel26.Text = "水循环时间设置:";
|
||||
this.uiLabel26.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// uiTextBox14
|
||||
//
|
||||
this.uiTextBox14.Cursor = System.Windows.Forms.Cursors.IBeam;
|
||||
this.uiTextBox14.Font = new System.Drawing.Font("微软雅黑", 10.5F);
|
||||
this.uiTextBox14.Location = new System.Drawing.Point(395, 134);
|
||||
this.uiTextBox14.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||
this.uiTextBox14.MinimumSize = new System.Drawing.Size(1, 16);
|
||||
this.uiTextBox14.Name = "uiTextBox14";
|
||||
this.uiTextBox14.Padding = new System.Windows.Forms.Padding(5);
|
||||
this.uiTextBox14.Radius = 3;
|
||||
this.uiTextBox14.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220)))));
|
||||
this.uiTextBox14.ShowText = false;
|
||||
this.uiTextBox14.Size = new System.Drawing.Size(91, 28);
|
||||
this.uiTextBox14.TabIndex = 26;
|
||||
this.uiTextBox14.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
this.uiTextBox14.Watermark = "";
|
||||
this.uiTextBox14.Click += new System.EventHandler(this.uiTextBox14_Click);
|
||||
//
|
||||
// uiLabel25
|
||||
//
|
||||
this.uiLabel25.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
@@ -2382,35 +2411,6 @@ namespace 全自动水压检测仪
|
||||
this.uiLight1.TabIndex = 1;
|
||||
this.uiLight1.Text = "uiLight1";
|
||||
//
|
||||
// uiLabel26
|
||||
//
|
||||
this.uiLabel26.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.uiLabel26.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
|
||||
this.uiLabel26.Location = new System.Drawing.Point(277, 135);
|
||||
this.uiLabel26.Name = "uiLabel26";
|
||||
this.uiLabel26.Size = new System.Drawing.Size(112, 30);
|
||||
this.uiLabel26.TabIndex = 25;
|
||||
this.uiLabel26.Text = "水循环时间设置:";
|
||||
this.uiLabel26.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// uiTextBox14
|
||||
//
|
||||
this.uiTextBox14.Cursor = System.Windows.Forms.Cursors.IBeam;
|
||||
this.uiTextBox14.Font = new System.Drawing.Font("微软雅黑", 10.5F);
|
||||
this.uiTextBox14.Location = new System.Drawing.Point(395, 134);
|
||||
this.uiTextBox14.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||
this.uiTextBox14.MinimumSize = new System.Drawing.Size(1, 16);
|
||||
this.uiTextBox14.Name = "uiTextBox14";
|
||||
this.uiTextBox14.Padding = new System.Windows.Forms.Padding(5);
|
||||
this.uiTextBox14.Radius = 3;
|
||||
this.uiTextBox14.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220)))));
|
||||
this.uiTextBox14.ShowText = false;
|
||||
this.uiTextBox14.Size = new System.Drawing.Size(91, 28);
|
||||
this.uiTextBox14.TabIndex = 26;
|
||||
this.uiTextBox14.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
this.uiTextBox14.Watermark = "";
|
||||
this.uiTextBox14.Click += new System.EventHandler(this.uiTextBox14_Click);
|
||||
//
|
||||
// NormalTemperatureMode
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
|
||||
@@ -5,6 +5,7 @@ using Sunny.UI;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Configuration;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
@@ -121,18 +122,22 @@ namespace 全自动水压检测仪
|
||||
dataGridView.ScrollBars = ScrollBars.Both;
|
||||
|
||||
|
||||
// ============ 添加编辑按钮列(放在第一列) ============
|
||||
DataGridViewButtonColumn editColumn = new DataGridViewButtonColumn
|
||||
var config = ConfigurationManager.AppSettings;
|
||||
if (config["AllowModified"]?.ToString() == "1")
|
||||
{
|
||||
Name = "EditColumn",
|
||||
HeaderText = "操作",
|
||||
Text = "保存",
|
||||
UseColumnTextForButtonValue = true,
|
||||
Width = 60,
|
||||
SortMode = DataGridViewColumnSortMode.NotSortable,
|
||||
DefaultCellStyle = { Alignment = DataGridViewContentAlignment.MiddleCenter }
|
||||
};
|
||||
dataGridView.Columns.Add(editColumn);
|
||||
// ============ 添加编辑按钮列(放在第一列) ============
|
||||
DataGridViewButtonColumn editColumn = new DataGridViewButtonColumn
|
||||
{
|
||||
Name = "EditColumn",
|
||||
HeaderText = "操作",
|
||||
Text = "保存",
|
||||
UseColumnTextForButtonValue = true,
|
||||
Width = 60,
|
||||
SortMode = DataGridViewColumnSortMode.NotSortable,
|
||||
DefaultCellStyle = { Alignment = DataGridViewContentAlignment.MiddleCenter }
|
||||
};
|
||||
dataGridView.Columns.Add(editColumn);
|
||||
}
|
||||
|
||||
dataGridView.Columns.Add(new DataGridViewTextBoxColumn
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user