示例#1
0
 private void btnDisconnect_Click(object sender, EventArgs e)
 {
     if (opc.Disconnect())
     {
         btnConnect.Enabled     = true;
         btnListRefresh.Enabled = true;
         btnDisconnect.Enabled  = false;
     }
 }
示例#2
0
        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;
            }
        }
示例#3
0
 // 接続解除
 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);
     }
 }