| | |
| | | |
| | | _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) |
| | |
| | | |
| | | private void cbPingbiGuangshan_CheckedChanged(object sender, EventArgs e) |
| | | { |
| | | _opc.Write(OPCOutputTag.PingbiGuangShan, cbPingbiGuangshan.Checked); |
| | | if (new ConfigPassword("").ShowDialog() == DialogResult.OK) |
| | | { |
| | | _opc.Write(OPCOutputTag.PingbiGuangShan, cbPingbiGuangshan.Checked); |
| | | } |
| | | } |
| | | |
| | | private void cbPingbiSafeGuard_CheckedChanged(object sender, EventArgs e) |
| | | { |
| | | _opc.Write(OPCOutputTag.PingbiSafeGuard, cbPingbiSafeGuard.Checked); |
| | | if (new ConfigPassword("").ShowDialog() == DialogResult.OK) |
| | | { |
| | | _opc.Write(OPCOutputTag.PingbiSafeGuard, cbPingbiSafeGuard.Checked); |
| | | } |
| | | } |
| | | } |
| | | } |