From a587c3fef521ccf454716f4eeccadaca7fb77f86 Mon Sep 17 00:00:00 2001 From: jace.tang <1536884497@qq.com> Date: 星期一, 13 六月 2022 11:33:03 +0800 Subject: [PATCH] 1.merge(上次更新内容未发全,下为补充) 2.补偿配置界面设置隐藏,无法通过界面修改 3.标准块模式默认保存图片,和图片保存开关脱钩 4.增加标准块补偿CSV数据输出 5.修改原有OPC输出事件,新的输出事件添加触发值输出。版本号升级到1.0.2022.0613 --- ConfigPassword.cs | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/ConfigPassword.cs b/ConfigPassword.cs index 9936477..5f94304 100644 --- a/ConfigPassword.cs +++ b/ConfigPassword.cs @@ -1,6 +1,7 @@ 锘縰sing System; using System.Collections.Generic; using System.ComponentModel; +using System.Configuration; using System.Data; using System.Drawing; using System.Linq; @@ -20,7 +21,13 @@ private void btnOK_Click(object sender, EventArgs e) { - string password = "xs1234"; + string password = ""; + password = ConfigurationManager.AppSettings["Password"]; + if (string.IsNullOrWhiteSpace(password)) + { + password = "xs1234"; + } + if (tbPassWord.Text.ToUpper().Equals(password.ToUpper())) { this.DialogResult = DialogResult.OK; -- Gitblit v1.8.0