private void btnDisconnect_Click(object sender, EventArgs e) { if (opc.Disconnect()) { btnConnect.Enabled = true; btnListRefresh.Enabled = true; btnDisconnect.Enabled = false; } }
private void btnDisconnect_Click(object sender, EventArgs e) { if (opc.Disconnect()) { btnConnect.Enabled = true; btnListRefresh.Enabled = true; btnDisconnect.Enabled = false; //txtTag1.ReadOnly = false; //txtTag2.ReadOnly = false; //txtTag3.ReadOnly = false; //txtTag4.ReadOnly = false; //txtTag5.ReadOnly = false; } }
// 接続解除 private void btnDisconnect_Click(object sender, EventArgs e) { try { if (opc.Disconnect()) { btnConnect.Enabled = true; btnListRefresh.Enabled = true; btnDisconnect.Enabled = false; } } catch (Exception ex) { // Log Error DataHelper.ErrorLog(ex.Message); } }