From f13235bee2e25d091ba13dc3732b83f905565f80 Mon Sep 17 00:00:00 2001 From: patrick.xu <patrick.xu@broconcentric.com> Date: 星期一, 24 五月 2021 14:35:38 +0800 Subject: [PATCH] plc操作屏蔽添加安全密码 --- FormPlcOperation.Designer.cs | 2 -- FormPlcOperation.cs | 6 ++++++ Properties/AssemblyInfo.cs | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/FormPlcOperation.Designer.cs b/FormPlcOperation.Designer.cs index 4def8c2..7891b6a 100644 --- a/FormPlcOperation.Designer.cs +++ b/FormPlcOperation.Designer.cs @@ -128,7 +128,6 @@ this.cbPingbiSafeGuard.Text = "閬僵瀹夊叏闁�"; this.cbPingbiSafeGuard.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.cbPingbiSafeGuard.UseVisualStyleBackColor = true; - this.cbPingbiSafeGuard.CheckedChanged += new System.EventHandler(this.cbPingbiSafeGuard_CheckedChanged); // // cbPingbiGuangshan // @@ -143,7 +142,6 @@ this.cbPingbiGuangshan.Text = "閬僵鍏夋煹"; this.cbPingbiGuangshan.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.cbPingbiGuangshan.UseVisualStyleBackColor = true; - this.cbPingbiGuangshan.CheckedChanged += new System.EventHandler(this.cbPingbiGuangshan_CheckedChanged); // // FormPlcOperation // diff --git a/FormPlcOperation.cs b/FormPlcOperation.cs index 6fe851a..9fe2695 100644 --- a/FormPlcOperation.cs +++ b/FormPlcOperation.cs @@ -25,6 +25,12 @@ _opc.ReadOneItem_Wrapper(OPCOutputTag.PingbiSafeGuard, ref result); cbPingbiSafeGuard.Checked = result != null && (bool)result ? true : false; + + this.Load += (s, e) => + { + cbPingbiGuangshan.CheckedChanged += cbPingbiGuangshan_CheckedChanged; + cbPingbiSafeGuard.CheckedChanged += cbPingbiSafeGuard_CheckedChanged; + }; } private void cbLoadRbtAlarm_CheckedChanged(object sender, EventArgs e) diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index bd4b6e2..8de10e7 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // 鍙互鎸囧畾鎵�鏈夎繖浜涘�硷紝涔熷彲浠ヤ娇鐢ㄢ�滃唴閮ㄧ増鏈彿鈥濆拰鈥滀慨璁㈠彿鈥濈殑榛樿鍊硷紝 // 鏂规硶鏄寜濡備笅鎵�绀轰娇鐢ㄢ��*鈥�: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.1.0")] -[assembly: AssemblyFileVersion("1.0.1.0")] +[assembly: AssemblyVersion("1.0.1.1")] +[assembly: AssemblyFileVersion("1.0.1.1")] -- Gitblit v1.8.0